🐍 Python for Beginners · 12 fun levels
🐍 Python for Beginners (12 fun levels). Write your first line of code. Print, variables, if/else, for loops — 12 story-driven levels from "Hello, world!" to a 1+2+…+100 accumulator. Built for ages 8–12. Free, runs in your browser, progress auto-saved, pet companion.
Recommended age: 8–12. 12 bite-sized levels, browser-based, no install, progress auto-saved.
What you'll learn
Chapter 1 — 第一行代码
Focus: print() 与中文输出
Chapter 2 — 变量小盒子
Focus: 赋值、加法、f-string
Chapter 3 — 如果…那么…
Focus: if / else / 比较 / 取余
Chapter 4 — 循环小工厂
Focus: for range / 累加 / 字符串 × 数字
Ready to start? Level 1 · Take the 4-step lesson first.
For the full list of levels in this course, see the Python for Beginners course page. The site is free, ad-free, and uses the same pet-companion system across all 4 tracks.
Frequently asked questions
Q. Can a 6-year-old learn Python?
Yes. Python's print function is friendly enough — your kid only needs to recognize 5 English letters (p, r, i, n, t) to write their first line. The key is skipping the "install Python" step entirely and running it in the browser. See /python.
Q. Do I need to install Python?
No. The Python course runs Pyodide (a WebAssembly build of CPython) directly in the browser. Open the URL and start typing.
Q. How long does it take to finish all 12 levels?
2-3 months at 10-15 min/day. The 4 chapters cover print, variables, if/else, and for-loops. After completion, kids can build small projects (number guessing, calculator, drawing).
Related reading: Typing Before Python · How BabyCode Runs Real Python in the Browser.
Please enable JavaScript for the full experience.