👩🏫 Teacher Script:
👩🏫 Teacher Script:
==, !=, >, <, >=, <=👩🏫 Teacher Script:
“Let’s try some quick tests in Python. Observe carefully: you will only get True or False.”
# Equal to (==)
print("Is the apple red?", "red" == "red")
# Not equal (!=)
print("Is the apple not green?", "red" != "green")
# Greater than (>)
print("Is apple price greater than budget?", 60 > 50)
# Less than (<)
print("Is apple price less than budget?", 40 < 50)
# Greater than or equal (>=)
print("Do you have enough money?", 50 >= 50)
# Less than or equal (<=)
print("Is apple weight small?", 150 <= 200)
👉 Student Task: Run each line and read aloud whether it is True or False.
👉 Discussion Prompt: “Why do you think Python returned True for this one? Can someone explain?”
👩🏫 Teacher Script:
if, elif, and else to make decisions.”elif. If there are no choices left, it does nothing.”👉 Interactive Question: “In real life, where do we make such choices?” (Possible answers: choosing clothes, deciding lunch, exams pass/fail, etc.)
apple_color = "red"
if apple_color == "red":
print("This is a red apple! 🍎")
else:
print("This apple isn't red.")
👉 Ask Students: “What happens if I change apple_color to green?”
👉 Let one student try it out.
is_healthy = True
if is_healthy:
print("This apple is good for you! 👍")
else:
print("Maybe choose a different fruit. 👎")
👉 Discussion Prompt: “What if is_healthy = False? Can someone predict the output before running?”
apple_type = input("What color is the apple? ").lower()
if apple_type == "red":
print("Classic red apple")
elif apple_type == "green":
print("Tangy green apple")
elif apple_type == "yellow":
print("Sweet golden apple")
else:
print("Unknown apple variety")
👉 Student Interaction: Each student types a color and sees the classification.
👉 Challenge Question: “What happens if I type BLUE in uppercase?”
budget = int(input("What is your budget? "))
apple_price = int(input("What is the apple price? "))
if budget >= apple_price:
print("You can buy the apple! 🛍️")
else:
print("You don’t have enough money. 💸")
👉 Teacher Prompt: “If I have ₹50 and the apple costs ₹60, can I buy it? Let’s test.” 👉 Follow-up: “What if both are equal? (budget = 50, apple_price = 50)”
color = input("Apple color (green / red): ")
if color.lower() == "green":
print("Not ready yet, wait! ⏳")
elif color.lower() == "red":
print("Ripe and ready to eat! 🍎")
else:
print("I don’t know this color. ❓")
👉 Interactive Question: “What if someone types ‘yellow’? Why does the program give ❓?”
👉 Link Back: “This is where multiple elif conditions are useful.”
👩🏫 Teacher Script: “Let’s summarize. Who can tell me…”
if-else in real life?”👉 Encourage peer explanation: One student answers, another student adds to it.
👩🏫 Teacher Script: “Tomorrow (Day 04), we’ll go deeper into elif chains and learn about nested if statements. We’ll also create real-world examples like grading system and ticket price checker.”