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
5
Solutions shared
3
Languages

All challenges

Search by topic, language, or difficulty.

95 challenges
Easy

Point Quadrant

Find which quadrant a point lies in.

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

Above-Average Values

Keep the values that are greater than the average.

You'll learn Two passesFiltering
ArraysBeginnerLearning-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

Leap Year

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

You'll learn Boolean logicConditions
BeginnerNumbers
No solutions yet
Easy

Sum an Array

Add up all values in a list.

You'll learn AccumulatorsEmpty-list cases
ArraysBeginnerStudent-beginner
No solutions yet
Easy

Array Average

Compute the average of a list of numbers.

You'll learn Sum and countFloat division
ArraysBeginnerStudent-beginner
No solutions yet
Easy

Count Vowels

Count the vowels in a piece of text.

You'll learn Character checksSet membership
BeginnerStringsStudent-beginner
No solutions yet
Easy

Initials From a Name

Build uppercase initials from a full name.

You'll learn String splittingUppercase
BeginnerLearning-pathStrings
No solutions yet
Easy

Count Uppercase Letters

Count the capital letters in a text.

You'll learn Character checksCounting
BeginnerLearning-pathStrings
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

Replace Spaces With Dashes

Turn spaces into dashes to make a URL-style slug.

You'll learn String buildingCharacter replacement
BeginnerLearning-pathStrings
No solutions yet
Easy

Move Zeroes

Move every zero to the end while keeping the other order.

You'll learn Two pointersIn-place updates
ArraysBeginnerStudent-beginner
No solutions yet
Easy

Rotate Array

Rotate a list to the right by some steps.

You'll learn Array indexingModulo
ArraysBeginnerStudent-beginner
No solutions yet
Easy

Longest Word

Find the longest word in a sentence.

You'll learn String splittingTracking a maximum
BeginnerStringsStudent-beginner
No solutions yet
Easy

Running Sum

Replace each value with the total so far.

You'll learn Prefix sumsLists
ArraysBeginnerLearning-path
No solutions yet
Easy

Odd, Even, or Neither

Classify a number by whether it is an odd integer, an even integer, or neither.

You'll learn ModuloConditions
BeginnerNumbers
No solutions yet
Easy

Fizz Buzz

Build a sequence using divisibility by 3 and 5.

You'll learn ConditionsDivisibility
BeginnerNumbers
No solutions yet
Easy

Count Words

Count the words in a sentence.

You'll learn String splittingWhitespace
BeginnerStringsStudent-beginner
No solutions yet