Functions coding challenges

Practise functions with 21 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 · 20 Medium · 1

Skills you'll practise: Input validation2D listsAccumulatorsAveragesBranchingCalendar rulesCeiling divisionChained conditionsCharacter replacementComparisonsCountersDigit extraction
  • 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.

21 challenges
Easy

Middle Item

Read numbers up to a negative sentinel and return the middle one.

You'll learn Sentinel valuesList indexing
BeginnerCS1ConditionsFunctionsHomeworkIntro programmingStudent-beginner
No solutions yet
Easy

Password Modifier

Strengthen a password by swapping some letters for symbols and adding its length at the end.

You'll learn Character replacementString building
BeginnerCS1ConditionsFunctionsHomeworkIntro programmingStudent-beginner
No solutions yet
Easy

Simple Statistics

Return the minimum, maximum and average of a list of whole numbers.

You'll learn AccumulatorsRunning minimum and maximum
BeginnerCS1ConditionsFunctionsHomeworkIntro programmingStudent-beginner
No solutions yet