Get a set of coding challenges with test cases and hints, for any language, from beginner to advanced

Fresh coding challenges
with test cases
to check against

Type the language you code in, choose a level, how many challenges and a set number. The page deals challenges from a bank of twenty-four, each with test cases whose answers were worked out by a reference solution, and a hint you can keep covered.

Enter your figures and read the result

The worked example is five mixed challenges in Python. Saved on this device only.

Loading Coding Challenge Generator. If nothing appears, turn on JavaScript.

What you get

Academics · Study SkillsOpen to everyone · no sign-in

What you finish with
A worked-out result for your own entry (a headline figure, tiles, tables and a drawing where one helps), as a printout, a spreadsheet (.csv) or a saved file.
Who it is for
Students learning to code, teachers who need practice problems, and self-taught programmers who want a regular warm-up.
Format
Browser tool for a phone, tablet or computer: type or paste, the result updates as you type. Print, spreadsheet (.csv), save to a file and open it again.
Access
Open to everyone with the link: no account, no sign-in, nothing to buy and nothing to install. Everything you type stays in this browser; nothing is sent to Caveat.
Where it lives
The Study Skills space in Caveat Academics.
Support
Questions about access, an order or a correction: team@caveatacademic.com.

How to use it

  1. Load the worked example to see how it reads, or start with your own entry.
  2. Type or paste into the fields; the result updates as you type.
  3. Read the headline, the tiles and the tables.
  4. Try a second case from the buttons above the fields.
  5. Print the result, download a spreadsheet or save the entry to a file.

Get the challenges

How it works

The worked example from a language and a level to a set of challenges.

Small problems, often

Short problems with clear checks build skill in a way that reading about code does not. Writing the answer to a test case by hand first shows you understand the task before you write any code.

Reference answers were run

Each expected output on this page comes from a reference solution that the page builder ran, so the test cases do not rely on mental arithmetic.

Sources

  1. Common introductory programming exercises from computer science courses: loops, strings, lists, recursion and simple algorithms.
  2. Computer Science Teachers Association standards for K-12 computer science, on algorithms and programming (csteachers.org).

The worked examples are invented for illustration. What you type is saved only in this browser and is never sent to Caveat. Support: team@caveatacademic.com.

Written with AI, then checked before it is published. How we checkFound a mistake? Report it and we fix it, or refund you.Cancel anytime.