Learn Python Programming
Interactive exercises to help you understand code step by step
How to Learn Programming
The best way to learn programming is to understand code before you write it.
Each topic follows these steps:
- Predict - Look at code and guess what it does
- Run - See what actually happens
- Investigate - Trace through the code step by step
- Modify - Make small changes to existing code
- Make - Create your own programs
Choose a Topic
Programming Computer Science Theory
Variables
Store and use data in your programs
Selection
Make decisions with if statements
For Loops
Repeat code a specific number of times
CPU & Fetch-Execute
How the processor runs programs
While Loops
Repeat code while a condition is true
Lists
Work with collections of data
Functions
Organise code into reusable blocks
File Handling
Read and write data to files
Types of Activities
Parsons Problems
Drag and drop code blocks into the correct order. Great for learning without worrying about typing!
Code Tracing
Follow code line by line and track what happens to variables. Like being a detective!
Prediction Quizzes
Look at code and predict what it will output. Test your understanding!
Worked Examples
Step-by-step explanations showing how to solve problems.