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

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

Every Other Character

Keep the characters at even positions.

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

Title Case

Capitalize the first letter of every word.

You'll learn String methodsCapitalization
BeginnerStringsStudent-beginner
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

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

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

Body Mass Index

Compute BMI from weight and height.

You'll learn FormulasFloating point
BeginnerLearning-pathVariables
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

Letter Grade

Turn a test score into a letter grade.

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

Array Maximum

Find the largest value in a list.

You'll learn Tracking a maximumSingle pass
ArraysBeginnerStudent-beginner
No solutions yet
Easy

Count Positive Numbers

Count the values greater than zero in a list.

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

Array Minimum

Find the smallest value in a list.

You'll learn Tracking a minimumSingle pass
ArraysBeginnerStudent-beginner
No solutions yet
Easy

Second Largest Value

Find the second largest distinct value.

You'll learn Two trackersDistinct values
ArraysBeginnerStudent-beginner
No solutions yet