Challenges

Python challenges

Classic Python: the challenge's words on the left, your code on the right, and Check runs its tests. No game: just Python, files and you.

A random challenge by level

Level 4: Data files and several steps, like the state exam.

1

Python basics

Classic challenges: printing, input, numbers, if, loops, text, functions and files.

Levels 1–40 of 1 solved
  1. 1-9A grades report
11

Algorithms

The classics, by hand: the smallest and largest, searching, sorting, binary search, primes, GCD and other bases.

Levels 3–40 of 4 solved
  1. 11-5Guess by halving
  2. 11-7The sieve of Eratosthenes
  3. 11-9From any base
  4. 11-10Perfect numbers
12

Exam practice

Whole exam-style challenges: a data file in a set format, several steps, and the answer written exactly as asked.

Level 40 of 7 solved
  1. 12-1Change in coins
  2. 12-2Race results
  3. 12-3Sales by seller
  4. 12-4The longest warm spell
  5. 12-5A class's marks
  6. 12-6Questions about numbers
  7. 12-7Questions about words
13

Olympiad

First rounds of the olympiads: an idea makes it quick. Windows, prefix sums, a stack, greedy choices and counting in one pass.

Levels 4–50 of 4 solved
  1. 13-1The best days in a row
  2. 13-3Balanced brackets
  3. 13-6Where was I before?
  4. 13-7A majority