🐍 Learn Python Basics

🎈 Lesson: If and Else Statements


🎁 What is an If and Else Statement?
Imagine a Toy Robot 🤖

If the robot sees a **red toy**, it will say, "I love red!" 🟥
Else (if the toy is not red), it will say, "I love blue!" 🔵

In Python, we use if and else to make decisions, just like the robot!

🧩 Example in Python:
toy = "red"
if toy == "red":
    print("I love red!")
else:
    print("I love blue!")
        

Let’s play a fun game where you make choices with "If" and "Else"! 🎮


🎮 Let's Play a Game!
Robot, What Color is Your Toy?

Choose the correct toy color, and see what the robot says! 🛸