Tutorpip← About this lessonOpen the sheet →Download PDF
Ages 5+ · Coding · Finding bugs
Oops, a bug
🖌️dry brush🐛a bug🔧a fix🎨painted fence
A bug is a mix-up we can fix.
The big ideaA bug is a mix-up in the steps. We fix the steps and try again.

How it works

A robot does only the steps it is given.

A bug is a mix-up in the steps. It is nobody's fault.

We fix the steps and try again.

Cards: paint,paint, paintThe brush isdryAdd a card: dipthe brushBlue fence
Bo and the fence.

Example 1: Mia's fence

  1. Mia gives Bo three cards: paint, paint, paint.
  2. Bo does every card, but the brush is dry, so the fence stays plain.
  3. Mia sees that a step is missing. That mix-up is a bug.
  4. She adds a card at the start: dip the brush. Now the paint rolls on.

Example 2: Bo on the board

  1. Bo starts at the top left, facing right, and goes forward twice.
  2. The second step bumps a rock. That is a bug.
  3. Fix the steps: turn right, forward twice, turn left, forward twice.
  4. Now Bo lands on the star.
🪨🪨⭐🤖
Bo walks the dotted way to the star.

Example 3: A bug at home

  1. Pick a job with a grown-up, like making a sandwich.
  2. You say the steps, and the grown-up does only your steps. Leave one out, like the bread.
  3. When the job goes silly, say, that is a bug! Then add the missing step and try again.

Example 4: Try it again

  1. After a fix, run the steps once more.
  2. If another mix-up shows up, fix that too.
  3. Fixing bugs is part of the job, and nobody is in trouble.

Words to know

bug
A mix-up in the steps.
step
One thing for the robot to do.
fix
To change the steps so they work.
card
One step, written down.

Watch out

Try it

  1. Why did the fence stay plain?
  2. What is a bug?
  3. Is a bug anyone's fault?
  4. Bo bumps a rock. What do we do?
Answers: 1. The brush was dry, because no card said to dip it · 2. A mix-up in the steps · 3. No · 4. Fix the steps and try again
Try at homePick a job with a grown-up, like making a sandwich. You say the steps, and the grown-up follows only your steps, so leave one out by mistake, like the bread. When the job goes silly, say "That is a bug!" and then add the missing step and try again.
For grown-upsWhen something goes wrong at home, say 'that is a bug, let us fix the steps' instead of 'that is wrong'. Your child hears that mix-ups are normal and fixable.
Open these notes on screenScan the code, or go to tutorpip.com.