Python practice for beginners

Practise Python right here in your browser: exercises with instant checking and worked answers, and a coding game for every topic. Start with whatever you're learning now.

Exercises with answers

Practice games for every topic

Each module of the course is a set of games that practise one area of Python. Every game opens with a short video, then six levels that go from changing one word to writing the code yourself.

How to practise well: type the code yourself rather than pasting it, predict what it will print before you press Run, and when something goes wrong, read the error message. It almost always tells you the line.

Questions people ask

Where can I practise Python online for free?

Right here: the exercises run real Python in your browser and check your answer, and Module 1 of the games is free with no account.

How should a beginner practise Python?

Little and often. Do a few short exercises on one idea, type the code yourself, predict the output before running it, and fix your own errors before looking at the answer.

Do I need to install Python to practise?

No. Everything on this site runs in your browser. When you're ready, you can install Python from python.org and run the same code on your computer.

Learn Python with games

Every idea on this page has its own game in the course, with a short video and six levels. The three games in Module 1 are free: no account, nothing to install.

Every idea on this page has its own game in the course. Pick up where you left off.

Play the first game freeContinue the course