Pressure-test your Python instincts.
Standalone problems with a blank workspace, instant output checks, optional hints, and XP for every clean solution.
Choose your difficulty
Start easy to build momentum or jump to hard if you want an interview-style stretch.
Sum of Evens
Print the sum of all even numbers from 1 to 100 inclusive.
Vowel Counter
Count the vowels (a, e, i, o, u) in the string "programming in python is productive" and print the count.
Palindrome Check
Write is_palindrome(s) returning True if s reads the same reversed (ignore case). Print the result for…
Second Largest
Print the second-largest distinct value in the starter list.
Word Frequency
Print the three most common words in the starter text, one per line as word count.
Caesar Cipher
Shift every lowercase letter in "hello world" forward by 3 (wrapping z→c), keep spaces, and print the result.
Fibonacci Sequence
Print the first 10 Fibonacci numbers (starting 0, 1) on one line separated by spaces.
Prime Hunter
Print all prime numbers between 2 and 50 on one line separated by spaces.
Matrix Diagonals
For the 3×3 matrix in the starter, print the sum of the main diagonal, then the sum of the anti-diagonal.
API Rate Limiter
Implement allow(timestamps, window, limit): given sorted request timestamps (seconds), return how many…
Roman Numerals
Write to_roman(n) converting an integer (1–3999) to a Roman numeral. Print the result for 4, 44, 1994 and…
Balanced Brackets
Write is_balanced(s) returning True when every bracket ()[]{} is closed in the right order. Print the result…
Run-Length Encoding
Compress a string so aaabccddd becomes a3b1c2d3, then write the decoder and prove it round-trips.
Two Sum
Given a list and a target, return the indices of the two numbers summing to it: in one pass, not nested…
Group Anagrams
Group words that are anagrams of each other. Print one line per group: the sorted words joined by spaces,…
Binary Search
Implement binary search returning the index of a target in a sorted list, or -1. Print the index for four…
Merge Intervals
Merge overlapping intervals and print each surviving interval as start-end, one per line.
Edit Distance
Compute Levenshtein distance: the fewest single-character insertions, deletions or substitutions turning one…
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.