Learn Python in 3 weeks

Python is the simplest real coding language: it reads almost like English. About 30 to 45 minutes a day. Each day has one idea, one tiny thing to make, and a game. Each week ends with a boss project.

0 of 21 days done
Day 1 setup. Install Thonny (free, Python built in). Type code on top, press the green Run button.
Every day. Read the idea, type the example yourself (no copy-paste), change one thing, run it again.
Stuck? Read the last line of the red error. It names the problem and the line number.

The arcade

Three games that train the same skills as the plan. Your score saves in this browser.

What will Python print?


Robot walk

Commands: move() one step forward, left() and right() turn on the spot. Repeat with for i in range(3): then indent the lines below it 4 spaces (Tab key).

Tap the line with the bug

How to build anything on your own

Use this recipe for the final project and for every idea after it. Small steps, run often.

1. Pick a tiny ideaSomething you could finish in one sitting. Small and done beats big and stuck.
2. Write steps in EnglishType each step as a comment: # ask the player a question. That is your map.
3. One comment becomes codeTurn only the first comment into code, then run it. Works? Next comment.
4. Read the errorLast line says what broke, the line number says where. Fix one thing, run again.
5. Add one upgradeA score, a replay, a random twist. One at a time, run after each.
6. Search like a coderSearch "python how to ..." and add the exact thing you want. Everyone does this.