An algorithm is just a recipe: a list of steps that solves a problem. Making a sandwich? That's an algorithm! Computers follow their recipes exactly, step by step — so the steps must be clear and in the right order.
Quick check ✋
Which of these is an algorithm?
Lesson 2
Flowcharts: Drawing Your Plan 🗺️
Coders draw their steps before writing code. A flowchart shows the path a program takes — including decisions, where the answer can be YES or NO.
Flowchart: "Should I bring an umbrella?"
Start
↓
Is it raining? 🌧️
↓ YES / NO ↓
Take umbrella ☂️
Wear sunglasses 😎
↓
Go outside!
Lesson 3 · Interactive
Loops: Repeat Without Getting Tired 🔁
Imagine telling a robot "beep" 100 times. Exhausting! A loop says it once: "repeat 100 times: beep." Try the loop machine:
Lesson 4 · Interactive
Sorting: Putting Things in Order 📊
Bubble sort compares two neighbours at a time — the bigger one "bubbles" to the right, again and again, until everything is in order. Watch it happen:
Lesson 5 · Interactive
Searching: Find It Fast 🔎
To find a number from 1–20 you could check every single one… or be clever! Binary search always guesses the middle, then throws away half. Watch how few guesses it needs:
Lesson 6
Basic Logic: AND, OR, NOT 🧠
Computers make decisions with three little words. AND means both things must be true. OR means at least one is true. NOT flips it around.
Example: "You can have ice cream IF you finished dinner AND it's not bedtime." 🍦
Logic challenge 🧩
It's sunny AND it's Saturday. Is "sunny AND Saturday" true?
Practice Zone
Your Mission 🏆
Try these offline challenges — no computer needed:
Write an algorithm for brushing your teeth (don't skip a step!)
Sort your books by height using bubble sort — compare two at a time
Play "guess my number 1–100" with a friend using binary search — you'll win in 7 guesses or fewer!
Draw a flowchart for choosing what to wear tomorrow
⭐ This course is 100% free for everyone, forever. No account, no payment, no time limits. Want mentors, projects and badges too? Parents can explore our subscription plans — but Algorithms will always stay free.
Subscribe Now 🚀
Get fun coding tips, free lessons and event news in your inbox. Parents only — we never email kids.