🐍 Free Python Tutorials
Write your first real code. Build a number guessing game, a tic-tac-toe game, and more. No installation needed.
Real Python in your browser. No installation, no signup.
Watch in order. Each one builds on the last. 📺 Full Playlist on YouTube · 📄 Get the Code
Phase 1 · Onboarding
What Python is, and why we'll use it
How to run Python code: code area, output panel, Run button
Phase 2 · The Big Idea
Phase 3 · Foundations
Your first Python code — make the computer show text
Store values in Python and give them names
Data types explained: maths vs text
Phase 4 · Code Blocks
Add, subtract, multiply, divide
Remainder, powers and order of operations
Ask the user a question
Convert text into a number
Decisions and indentation
Comparison operators
range() and repeating code
Repeat until a condition changes
Phase 5 · Working with Data
Join, repeat and len()
Indexing, append() and for loops
random.randint() and random.choice()
Phase 6 · First Creative Project
Phase 7 · Game Projects
Your first interactive game
Beat the computer
Funny stories from your own words
Add, subtract, multiply, divide
A for-loop project
Lists, loops and keeping score
Is your password strong?
Build a full game from scratch
Coming after Part 1