Free lab Real Python 3. Zero installs. Your code stays in this browser. Open the playground
18 problems · Easy to hard

Pressure-test your Python instincts.

Standalone problems with a blank workspace, instant output checks, optional hints, and XP for every clean solution.

Challenge catalog

Choose your difficulty

Start easy to build momentum or jump to hard if you want an interview-style stretch.

Easy

Sum of Evens

Print the sum of all even numbers from 1 to 100 inclusive.

30 XP
Easy

Vowel Counter

Count the vowels (a, e, i, o, u) in the string "programming in python is productive" and print the count.

30 XP
Easy

Palindrome Check

Write is_palindrome(s) returning True if s reads the same reversed (ignore case). Print the result for…

35 XP
Medium

Second Largest

Print the second-largest distinct value in the starter list.

50 XP
Medium

Word Frequency

Print the three most common words in the starter text, one per line as word count.

50 XP
Medium

Caesar Cipher

Shift every lowercase letter in "hello world" forward by 3 (wrapping z→c), keep spaces, and print the result.

55 XP
Medium

Fibonacci Sequence

Print the first 10 Fibonacci numbers (starting 0, 1) on one line separated by spaces.

50 XP
Hard

Prime Hunter

Print all prime numbers between 2 and 50 on one line separated by spaces.

75 XP
Hard

Matrix Diagonals

For the 3×3 matrix in the starter, print the sum of the main diagonal, then the sum of the anti-diagonal.

75 XP
Hard

API Rate Limiter

Implement allow(timestamps, window, limit): given sorted request timestamps (seconds), return how many…

90 XP
Medium

Roman Numerals

Write to_roman(n) converting an integer (1–3999) to a Roman numeral. Print the result for 4, 44, 1994 and…

55 XP
Medium

Balanced Brackets

Write is_balanced(s) returning True when every bracket ()[]{} is closed in the right order. Print the result…

55 XP
Medium

Run-Length Encoding

Compress a string so aaabccddd becomes a3b1c2d3, then write the decoder and prove it round-trips.

50 XP
Medium

Two Sum

Given a list and a target, return the indices of the two numbers summing to it: in one pass, not nested…

60 XP
Hard

Group Anagrams

Group words that are anagrams of each other. Print one line per group: the sorted words joined by spaces,…

75 XP
Medium

Binary Search

Implement binary search returning the index of a target in a sorted list, or -1. Print the index for four…

55 XP
Hard

Merge Intervals

Merge overlapping intervals and print each surviving interval as start-end, one per line.

80 XP
Hard

Edit Distance

Compute Levenshtein distance: the fewest single-character insertions, deletions or substitutions turning one…

90 XP
How to use the arena

Practice that actually sticks

Every problem here is graded the same way as a lesson challenge: your code runs as real Python 3 in your browser, and what it prints is compared line by line with the target output. Nothing is sent to a server to execute, so you can experiment as much as you like.

Struggle first, then read

Give each problem an honest attempt before opening the hint. Being stuck for a few minutes is where most of the learning happens: you find out exactly which part of the idea you are missing. When you are done, or truly stuck, every problem has a written guide below its editor that explains the approach, traces it on the problem's own data, lists the classic mistakes and says how fast the solution runs.

Work through the difficulty levels

The easy problems practise one tool each: a range, a string method, a slice. The medium ones combine two or three, and introduce the standard patterns (counting with a dictionary, a stack, a greedy table). The hard problems are interview classics such as merge intervals, rate limiting and edit distance, where the first working answer is rarely the efficient one.

Come back to the ones you missed

Re-solving a problem from a blank editor a few days later is far more valuable than re-reading its solution. Solved problems keep their badge, so the ones without it are your to-do list. If a concept keeps tripping you up, the matching course lesson and the Python reference cover it in more depth.

Your next ten minutes

Write Python that does something useful.

Start free. No install, no card, no passive video marathon.

Start learning free → Explore the path