Is a recipe a program?
By the end of this lesson
Write a 5–8 step algorithm for an everyday task and spot a missing or unordered step.
Remember
- An algorithm is a clear list of steps to solve a problem.
- Steps must be in order, have an end, and be understandable by the follower.
- Recipes, tying shoes, and “how to add two 2-digit numbers” are algorithms.
- A missing step or a wrong order is a bug in the algorithm.
- Every function you later write in Python is an algorithm in a language a machine can run.
Worked examples
Cover the answer. Try the steps on paper, then open them.
Example 1 — Tea algorithm
Write steps that a robot could follow.
- Fill kettle with water
- Switch kettle on
- Put tea leaf / bag in cup
- When water boils, pour into cup
- Wait 2 minutes
- Add milk / sugar if wanted
- Stop
Answer: ordered, finite, clear
Check: “Make tea nicely” is not an algorithm — too vague.
Example 2 — Broken Maggi
Steps: add masala; eat; boil water; open packet. What is wrong?
- Order is scrambled
- You cannot eat before cooking
- Fix: open → water → boil → noodles → masala → wait → eat
Answer: wrong sequence
Check: Sequence bugs start here, before code.
Example 3 — School algorithm
Borrow a library book.
- Enter library
- Find the book on the shelf / catalogue
- Take it to the desk
- Show ID / scan
- Leave with the book
- Return by the due date
Answer: clear start and end
Check: Has an end — algorithms must stop.
Common mistakes
Slip Writing “do it properly” as a step.
Fix The follower cannot act on “properly”.
Use verbs you can see: pour, click, add 1.
Slip An infinite algorithm with no stop.
Fix “Keep stirring forever” never finishes.
Say when to stop.
Slip Thinking only computers have algorithms.
Fix Humans follow algorithms all day.
Computers just follow them without getting bored.
Try on paper first
Write the answer, then tap Reveal. These are not the quiz — they are warm-ups.
1. In one sentence, what is an algorithm?
Answer: A clear list of steps to solve a problem
2. Name one everyday algorithm.
Answer: Recipe / tying laces / morning routine (any)
3. If steps are in the wrong order, we call that a…
Answer: Bug (sequence error)
4. Must an algorithm end?
Answer: Yes
Touch practice
8 tap / typeTap or type. Use the hint if you need it. Retry any miss — the why is the lesson.
Optional picture lab
After practiceReal world
Making tea, tying shoes.
Connect
Every function is an algorithm.
⭐ Star quiz
9 questionsDo the worked examples and touch practice first. Then take the quiz without peeking.