494 exercises · 8 tracks · runs in your browser

You read about Python.
Now actually write it.

Stop reading about Python. Write it. Real exercises, instant feedback, no setup.

# PyChallenge Exercise: FizzBuzz
for i in range(1, 16):
if i % 15 == 0:
print("FizzBuzz")
elif i % 3 == 0:
print("Fizz")
elif i % 5 == 0:
print("Buzz")
else:
print(i)
PASS +20 XP earned!
494exercises
8tracks
0installs
Freeto start

Pick your track. Start immediately.

Write. Run. Know.

Instant feedback on every line you write.

Your code runs in real CPython. Hit run, see output, see pass or fail. No guessing whether you got it right.

# Reverse a string
def reverse(s):
return s[::-1]
print(reverse("python"))
PASS nohtyp +10 XP

Hints, not answers.

Stuck? Get nudged forward, not handed the solution.

Three progressive hints per exercise. Each one opens a door without walking through it for you.

Hint 1 Think about Python's slice syntax with a step argument.
Hint 2 Unlock hint 2
Hint 3 Unlock solution

From readers to writers.

"I read the for loop chapter three times. One exercise here and it finally clicked. Writing it yourself is completely different."

Arjun S., computer science student

"I thought I knew Python from tutorials. PyChallenge showed me I couldn't actually write it yet. That gap was real."

Tom B., junior backend developer

"Ten minutes in I wrote a working function from scratch. No video course ever gave me that."

Fatima R., switching from marketing

Stop reading. Start writing.

No signup, no setup. Pick a track and write your first exercise in under a minute.

Try an Exercise Now