0Pricing
Coding for Kids · Lesson

Write Your Own Algorithm

Make your own step-by-step plan, like a recipe.

Write Your Own Algorithm is a free Coding for Kids lesson on CoddyKit — lesson 4 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Coding for Kids learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

Your Turn to Plan! ✍️

Hi, amazing coder! 🌟

Today YOU write your own algorithm — a step-by-step plan! 📋

Just like a recipe, but made by YOU! 👩‍🍳🎉

Pick a Job 🎯

First, pick something to do! 🎯

Maybe: make a peanut butter sandwich! 🥪

Or brush your teeth, or feed a pet! 🐶 Pick ONE fun job to plan! 😄

Think of the Steps 🧠

Now think: what do you do FIRST? Then next? 🤔

For a sandwich: get bread 🍞, add peanut butter 🥜, put bread on top!

Little steps, one at a time! 👣

Put Them in Order 🔢

Remember — order matters! 🔢

You can't add peanut butter before you get the bread! 🥜🍞

Line up your steps from first to last! 1, 2, 3! 😊

My Sandwich Algorithm 🥪

Here's a finished plan! 🎉

  • 1. Get two slices of bread 🍞
  • 2. Open the peanut butter 🥜
  • 3. Spread it on one slice 🔪
  • 4. Put the other slice on top 🍞
  • 5. Yum, eat it! 😋

Check Your Steps ✅

Read your plan like a robot! 🤖

Does every step make sense? Did you forget anything? 🔍

Pretend to do each step and see if it works! Good coders always check! 👍

Plan a Morning! ☀️

Try another one — your morning! 🌅

  • Wake up ⏰
  • Get out of bed 🛏️
  • Eat breakfast 🥣
  • Brush teeth 🪥

That's YOUR morning algorithm! 🎉

Plan a Treasure Hunt! 🗺️

Make a treasure map algorithm for a friend! 🏴‍☠️

  • Start at the door 🚪
  • Walk 5 steps 👣
  • Turn left ⬅️
  • Look under the pillow! 🛏️💰

Clear steps = found treasure! 🪙

Make It Clear for Robots 🤖

Remember, computers need TINY clear steps! 🤖

If a step is too big, break it up! 🔨

The clearer your plan, the better it works! You're getting so good! ⭐

You're an Algorithm Maker! 🎨

WOW! You can now make your own algorithms! 🤩

Sandwiches 🥪, mornings ☀️, treasure hunts 🗺️ — you can plan ANYTHING! 🌟

This is exactly what coders do! 💻

Let's Remember! 💡

To write an algorithm:

  • Pick a job 🎯
  • Think of the steps 🧠
  • Put them in order 🔢
  • Check it! ✅

Now let's try a fun question! 😄

Quick Check

You got this! 🎉 What is the FIRST step to make a sandwich algorithm?

You Did It! 🏆

Hooray, super coder! 🎉🤩

You learned to write your OWN algorithm: pick a job 🎯, think of steps 🧠, put them in order 🔢, and check ✅!

You finished the Algorithms course! 🏆 You're thinking like a real coder now! 💻⭐ So proud of you! 👏

Frequently asked questions

Is the “Write Your Own Algorithm” lesson free?

Yes — the full text of “Write Your Own Algorithm” is free to read here on the web, and the Coding for Kids course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Coding for Kids course, upgrade to CoddyKit PRO.

What will I learn in “Write Your Own Algorithm”?

Make your own step-by-step plan, like a recipe. You practise Coding for Kids with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start Coding for Kids?

No prior experience is required. Coding for Kids on CoddyKit is structured for beginners through advanced learners; this is — lesson 4 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “Write Your Own Algorithm” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this Coding for Kids lesson?

Yes. Every Coding for Kids lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. What Is an Algorithm?
  2. Why Order Matters
  3. Be a Robot!
  4. Write Your Own Algorithm
← Back to Coding for Kids