Write your own functions, then use them to make a button and a game.
★ Challenge completeRead a longer program and change it without breaking it.
Find the part of a longer program that does one job, then change only that part.
Name steps, give them inputs and outputs, and keep them in modules.
Give a group of commands a name, then use that name again and again.
Make one function draw many different shapes, and keep your best ones as tools.
Return a value, combine functions, and use them inside loops.
Put an if inside a function so it chooses its answer, then call it for every item in a list: decisions, lists and functions working together.
Keep related functions together in a file you can import, like a toolbox.
Events, and a button built from scratch.
Make a program wait, then react when something happens.
Turtle has no buttons, so build one from a rectangle and a click check.
Build a game that uses everything, then add power-ups. Two optional lessons go further.
Build a game that uses everything so far. The turtle hops along a path; catch it before it hides.
Add lives, a status bar, a gold turtle and an upgrade you buy with points.
Turn the game into an app with a panel of buttons made from lists.
Turn the game into a real game with screens, levels and a turtle that moves.
Progress is saved in this browser only. Nothing is sent anywhere.
For teachers: Teacher guide (notes, answers, solutions, slides and worksheets)