Section outline

    • 🧾 What is a Command?

      A command is a single instruction that tells the robot what to do. It’s like giving one small order:

      • Move forward

      • Turn left

      • Beep

      • Pick up object

      Each command is super specific — robots only do exactly what you tell them. Not more, not less.

    • 🔢 What is a Sequence?

      A sequence is when you arrange commands in a particular order to make something happen.

      Just like in a song or dance, order matters!

      Example:

      To make your robot draw a square:
      1. Move forward

      2. Turn right

      3. Move forward

      4. Turn right

      ...and so on, until the square is complete.

      If the sequence is wrong, the robot might draw something weird like a triangle or scribble! 🤖🎨


      🎯 Why Order of Execution Matters

      Let’s take a real-world example: making tea 🍵

      Correct sequence:

      1. Boil water

      2. Add tea leaves

      3. Pour into cup

      4. Add sugar

      Now, imagine this sequence:

      1. Pour into cup

      2. Add sugar

      3. Add tea leaves

      4. Boil water

      That’s a disaster tea! 😖

      Similarly, in programming, each command must be in the right order to get the correct result.\

    • 🧠 Real-Life Example in Robots

      Let’s say your robot has to clean a room:

      1. Turn on vacuum

      2. Move forward

      3. Turn left

      4. Stop after 5 minutes

      If step 1 (turn on vacuum) is missing, it’ll move but never clean.

      If step 4 is missing, it may never stop!

      💡 Key Takeaway

      Every robot task is a combination of small commands in the right order. Like building blocks, they come together to form something smart and useful.


      🔍 Challenge: Rearrange the Commands

      Your robot has to water a plant. But the commands got scrambled!

      • Move forward

      • Lower watering arm

      • Turn on water pump

      • Return to home base

      • Raise arm

      • Turn off pump

      🧠 Can you write them in the correct order?