Beginner coding challenges

Practise beginner with 95 coding challenges, from easy to hard. Every challenge runs in your browser with instant tests, an AI review of your code and community solutions to compare.

Easy · 89 Medium · 6

Skills you'll practise: CountingArithmeticDigit extractionFormulasListsString splitting2D listsConditionsDivisibilityLoopsModuloSingle pass
  • Python · C++ · C#
  • Automated tests
  • AI code review
  • Community solutions
226
Challenges
2
Solutions shared
3
Languages

All challenges

Search by topic, language, or difficulty.

95 challenges
Easy

Body Mass Index

Compute BMI from weight and height.

You'll learn FormulasFloating point
BeginnerLearning-pathVariables
No solutions yet
Easy

Letter Grade

Turn a test score into a letter grade.

You'll learn if/elif chainsRanges
BeginnerConditionsLearning-path
No solutions yet
Easy

Palindrome String

Check whether text reads the same forwards and backwards.

You'll learn Two pointersEarly exit
BeginnerStringsStudent-beginner
No solutions yet
Easy

Multiplication Table Row

List the first multiples of a number.

You'll learn MultiplesBuilding lists
BeginnerLearning-pathLoops
No solutions yet
Easy

Row Sums

Add up every row of a grid.

You'll learn 2D listsNested loops
BeginnerGridsLearning-path
No solutions yet
Easy

Title Case

Capitalize the first letter of every word.

You'll learn String methodsCapitalization
BeginnerStringsStudent-beginner
No solutions yet
Easy

Swap First and Last

Exchange the first and last items of a list.

You'll learn List indexingSwapping
ArraysBeginnerLearning-path
No solutions yet
Easy

Absolute Value Without abs

Compute an absolute value with a condition.

You'll learn NegationNo built-ins
BeginnerConditionsLearning-path
No solutions yet
Easy

First Negative Index

Find where the first negative number appears.

You'll learn Linear searchEarly return
ArraysBeginnerLearning-path
No solutions yet
Easy

Anagram Check

Check whether two phrases use the same letters.

You'll learn SortingFrequency counts
BeginnerStringsStudent-beginner
No solutions yet
Easy

Reverse a String

Return the characters of a string in reverse order.

You'll learn Reverse iterationSlicing
BeginnerStringsStudent-beginner
No solutions yet
Easy

Leap Year

Check whether a year follows the Gregorian leap-year rule.

You'll learn Boolean logicConditions
BeginnerNumbers
No solutions yet
Easy

Sum of Multiples

Add values below a limit divisible by any supplied factor.

You'll learn LoopsDivisibility
BeginnerNumbers
No solutions yet
Easy

Countdown to Liftoff

Count down from a number and end with Liftoff!

You'll learn Reverse loopsLists
BeginnerLearning-pathLoops
No solutions yet
Easy

Point Quadrant

Find which quadrant a point lies in.

You'll learn CoordinatesSign checks
BeginnerConditionsLearning-path
No solutions yet
Easy

Ticket Price by Age

Choose a cinema ticket price from the visitor's age.

You'll learn Age rangesBoundary values
BeginnerConditionsLearning-path
No solutions yet
Easy

Cart Total With Discount

Total a shopping cart and apply a discount above a threshold.

You'll learn ListsDiscount rules
ArraysBeginnerFunctionsLearning-path
No solutions yet
Easy

Largest of Three

Pick the largest of three numbers without a built-in max.

You'll learn ComparisonsCombining conditions
BeginnerConditionsLearning-path
No solutions yet