Beginner coding challenges

Practise beginner with 154 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 · 148 Medium · 6

Skills you'll practise: Nested loopsDigit extractionCountingConditionsLoopsString splittingArithmeticDivisibilityFormulasLists2D listsAccumulators
  • Python · C++ · C#
  • Automated tests
  • AI code review
  • Community solutions
341
Challenges
245
Solutions shared
9
Languages

All challenges

Search by name or topic, or filter by difficulty.

154 challenges
Easy

Happy Number

Decide whether repeatedly summing the squares of the digits of a number reaches 1.

You'll learn Digit extractionCycle detection
BeginnerCS1High schoolLoopsNumbersmath
No solutions yet
Easy

Strong Number

Check whether a number equals the sum of the factorials of its digits.

You'll learn Digit extractionFactorials
BeginnerCS1High schoolLoopsNumbersmath
No solutions yet
Easy

Contains the Character

Keep only the words that contain a given letter, ignoring case.

You'll learn Case-insensitive comparisonFiltering a list
BeginnerCS1HomeworkIntro programmingStudent-beginner
No solutions yet
Easy

Automorphic Number

Check whether the square of a number ends with the number itself.

You'll learn Digit comparisonPowers of ten
BeginnerCS1High schoolLoopsNumbersmath
No solutions yet
Easy

Harshad Number

Check whether a number is divisible by the sum of its digits (a Harshad or Niven number).

You'll learn Digit sumDivisibility
BeginnerCS1High schoolLoopsNumbersmath
No solutions yet
Easy

Disarium Number

Check whether a number equals the sum of its digits raised to their positions.

You'll learn Digit positionsInteger powers
BeginnerCS1High schoolLoopsNumbersmath
No solutions yet
Easy

Gradebook Letter Counts

Turn a whole class's scores into letter grades and count how many students got each letter.

You'll learn If-else chainsCounting with an array
BeginnerCS1HomeworkIntro programmingStudent-beginner
No solutions yet
Easy

Spy Number

Check whether the sum of a number's digits equals the product of its digits.

You'll learn Digit sumDigit product
BeginnerCS1High schoolLoopsNumbersmath
No solutions yet
Easy

Alphabet Triangle

Print a right triangle of letters where row i spells the first i letters of the alphabet.

You'll learn Nested loopsCharacter codes
BeginnerCS1High schoolLoopsNested-loopsPatterns
No solutions yet
Easy

Neon Number

Check whether the digit sum of a number's square equals the number.

You'll learn Digit sumSquaring
BeginnerCS1High schoolLoopsNumbersmath
No solutions yet