Start in your browser, with nothing to set up
This small Python runs on your own device, inside the page. Your code is not sent to our server and nothing is kept when you leave, so there is no account to make and nothing to break.
It knows what beginners meet first: print, variables, maths, f-strings, input, if, loops, lists, functions, and the random and math toolboxes. A mistake shows an error message like the ones real Python prints, line number included. Dictionaries, classes, tuples and files wait for a real computer: if you paste code that uses them, the box says so.
Is my child ready for typed code?
Age is a rough guide. What matters is whether a child reads a short instruction alone and finds keys without hunting. A 2022 Raspberry Pi Foundation article puts text languages at around nine or ten, and block-based Scratch from about six, adding that children develop at different speeds.
Still hunting for letters? Blocks are kinder for now, and free first steps for kids compares the options. Signs that typed Python will feel like fun:
- copies a line exactly, quote marks and brackets included
- finds Shift, Enter and the bracket keys quickly
- treats a mistake as a puzzle, not a disaster
The first ideas, one lesson at a time
Python's key words sit close to English, and python.org says newcomers can find it easy to pick up. Levels 4 and 5 add one idea per lesson, and Error detective shows how to read the red text it prints.
| Idea | What it does | Lesson |
|---|---|---|
print | Shows words on the screen | Hello, Python! |
| Variables | A labelled box: score = 10 | Variables |
input | Asks a question, waits for an answer | Programs that listen |
if and else | Chooses what happens next | Decisions |
for and while | Repeat lines without rewriting them | for loops, while loops |
| Lists | A row of values, like a shopping list | Lists |
| Functions | Named steps made with def, used again | Functions |
Make a small game: Guess the Number
Level 5's big project is Guess the Number. The computer holds a secret, a while loop asks for guesses, and if and elif reply "Too low" or "Too high" until the guess is right.
The secret starts as 7, so the game can be tested. Then two lines make it real: import random opens Python's toolbox of chance, and random.randint(1, 10) lets the computer pick the secret itself. Now not even its maker knows it.
Next, make it yours: numbers up to 100, a guess counter, a cheeky message after three misses.
Old tutorials: stick to Python 3
Python 2 reached its end on 1 January 2020; its makers said it would get no more fixes, not even for security problems. Old tutorials still turn up in searches, and much of their code breaks in Python 3. Two clues give them away:
print "Hello"with no brackets. Python 3 needsprint("Hello"); try the old way in the box and it says the brackets are missing.raw_input(), which Python 3 renamedinput().
Moving to a real computer, with a grown-up
The box covers Levels 4 and 5. Installing Python on a real computer comes later, and it is a grown-up's job: an adult should pick the download and click through the steps.
Get Python from python.org, its official home. On Windows, Python's own documentation now recommends its install manager, offered on python.org and in the Microsoft Store as identical copies, and says the old full installer will not be made for 3.16 or later. As of November 2026 the newest release is 3.15.2; the downloads page, which has Mac versions too, shows the current one.
On Windows, the install manager adds the python command, so a program runs the way the course practises: python hello.py. Rehearse it in the practice terminal.
A free book, and a paid one
Two books, both for Python 3 (DayOneCode has no tie to either):
- Invent Your Own Computer Games with Python, 4th edition, by Al Sweigart: free online under a Creative Commons licence, written for complete beginners, kids and teenagers included. Its first game is Guess the Number. Running its programs needs Python installed.
- Python for Kids, 2nd edition, by Jason R. Briggs (No Starch Press, October 2022): a paid book; the publisher's page offers one sample chapter to download.
For parents
You need no Python to help. Ask your child to run a program and explain each line to you; saying it aloud often reveals the slip.
There is no sign-up, email or password. Progress stays in this browser and shows on the Stats page, and pages for children here never show ads.
Questions and answers
What age can a child start learning Python?
Many children manage typed code from around nine or ten, once finding keys feels easy; some start earlier with an adult close by. Watch the child, not the birthday: if they can copy print("Hi") exactly and enjoy fixing slips, let them try.
Is Python good for kids?
For a child ready to type real code, yes. A one-line program does something at once, words like if, else and while read almost like English, and it is the same Python grown-ups use, so nothing learnt is wasted. Read the first few error messages together.
Should my child learn Scratch or Python first?
Under about nine, or still hunting for letters? Start with Scratch blocks, which the Raspberry Pi Foundation suggests from about six. Move to Python when pressing keys feels easy. Nothing is wasted: a loop or an if means the same in both.
Can my child learn Python for free?
Yes. Python is free and open source, and the Python box and Levels 4 and 5 here cost nothing and need no account. Al Sweigart's Invent Your Own Computer Games with Python is free to read online. Be wary of free trial classes that lead to paid courses.
What should we do when Python shows an error?
Read the bottom line first: it names the kind of mistake, such as a NameError for a misspelt name. Then check the line number above it, and the line just before. Missing brackets, quote marks and colons are common early slips, and none can harm the computer.
Sources
The facts on this page were checked against these pages (14 November 2026):
- Python.org: Sunsetting Python 2
- Python docs: What's New in Python 3.0 (print() is a function; raw_input() became input())
- Python docs: Using Python on Windows (install manager, the python command, no full installer for 3.16)
- Python.org: Download Python (3.15.2 is the latest release as of November 2026; Windows and macOS)
- Python.org: About Python (free, open source, easy to pick up)
- Python tutorial: Errors and Exceptions (reading an error message)
- Raspberry Pi Foundation: At what age can a child start coding? (8 November 2022)
- Al Sweigart: Invent with Python (books free under a Creative Commons licence)
- Invent Your Own Computer Games with Python: Introduction (for beginners and kids; first game: Guess the Number)
- No Starch Press: Python for Kids, 2nd Edition (October 2022, Python 3, sample chapter)
More guides
- Coding for kids
Free coding for kids from about 9: real commands in a pretend terminal, two kid guides, stars and certificates. No account, no ads in lessons, nothing to install.
- Coding for beginners
Coding for beginners in the order that works: files, paths and the terminal first, then Python, web pages, Git and AI agents. Free, in your browser, no install.
- PowerShell for beginners
PowerShell for beginners, in plain words: what it is, how to open it without admin rights, how Verb-Noun names and aliases work, and where to get help. Try it free.
- PowerShell cheat sheet
A printable PowerShell cheat sheet for beginners: the terminal commands a free course teaches, with CMD and Mac equivalents, key tricks, safe deletes and a Try button.
- The DayOneCode blog
Plain answers to the questions every new coder asks.