Learn Python by drawing with a turtle.
Commands, loops, names, the counter and updates, one idea at a time.
Give a turtle commands, in order, and watch the picture they make.
Start lessonPredict, run and change short programs that repeat lines with a loop.
Give a number a name, then let the program work out the rest.
The loop counter i changes every pass, so a line can grow without you typing each number.
A variable can change itself, so a value grows each time round a loop.
Read a whole program that uses loops and variables together, then change it and add to it.
Decisions, patterns, lists and for-each, then a challenge: make a tile.
Make a program choose which lines to run, using if and else.
Use the remainder, %, to pick every second or third pass, and add a third choice with elif.
Keep many values under one name, pick one by its place, and count them with len.
Visit every item in a list in turn, without counting places.
Start lessonRead a tile pattern, change one thing and predict the result, then make a tile of your own.
Start lessonProgress is saved in this browser only. Nothing is sent anywhere.
For teachers: Teacher guide (notes, answers, solutions, slides and worksheets)