Offline activities · Quest 15

Debug the recipe

Find the planted mistakes in a recipe the way you would find bugs in code.

15 minutes

You will need

  • A simple recipe with five steps
  • A pencil
  • A grown-up helper

What to do

  1. Write the recipe as numbered steps, for example making a fruit salad.
  2. Secretly plant two bugs: swap two steps, or leave one out.
  3. Give the recipe to a friend and ask them to find the bugs without cooking.
  4. Discuss the fix. Which kind of bug was it: wrong order or missing step?
  5. Ask a grown-up before using the stove, knives or any appliance, and make the real recipe together.

Talk about it

  • How is debugging a recipe like debugging code?
  • Why is testing a small step first a good habit?

See the book Code Quest with Python →