Set up your courses
Pick the courses you're taking and this page shows only those. About 30 seconds.
Code, one block at a time.
Short lessons: predict first, try it in a model, then see why it works.
Start the first lessonNo sign-up. Your progress saves on this device, and you can keep it later with an email.
Know some thinking in code already?
Answer about 10 questions and skip the units you know. New to it? Start with the first lesson below.
Step by step
Run short programs in your head one block at a time, predict where the egg ends up and what it says, and find the block where a program stops doing what its writer meant.
Formulas: Step by stepRemembering values
Store values under names, copy and update them, swap two of them, and write down everything a program remembers at any line.
Making decisions
Ask true-or-false questions about values, and let the answers choose which blocks run, with if, otherwise, chains of checks, and, or, not and decisions inside decisions.
Repeating
Repeat blocks a set number of times or until a condition holds, count and total with loops, catch loops that run one pass too many or never end, and put one loop inside another.
Working through a list
Walk a list item by item to count, total, find the biggest, search, stop early and work out an average, including for an empty list.
Breaking problems down
Name a group of blocks as a function, call it with inputs, get a result back, keep its own variables inside it, and build a program from named parts.
Finding bugs
Choose tests that catch bugs, trace a wrong output back to its cause, test a guess with a say block, fix the common bugs without breaking what worked, and say in one sentence what a program does.
Meet Python
Read and arrange the Python that every plain-word block has been running, from print and = to if, for, while and def, and predict what short Python programs print.