🤖 Python Decision Maker - Day 3
Teach your code to think! Complete each challenge! 🧠
1 Your First Decision 🤔
💡Learn: The if statement asks a question. If the answer is YES (True), it runs the indented code!
🎮Experiment: Change age to 10, then run again. What changes? The first print disappears! That's because 10 is NOT >= 13.
2 Comparison Operators ⚖️
📊Learn: These symbols compare values and answer True or False!
Greater Than
5 > 3
Is 5 bigger than 3? True!
Equal To
10 == 10
Two equals signs! True!
Not Equal
7 != 5
Are they different? True!
Greater or Equal
15 >= 15
Same or bigger? True!
3 Matching Game! 🎯
🧩Challenge: Match each comparison with its result!
Comparisons:
10 > 5
8 == 3
7 <= 7
4 != 4
Results:
True ✅
False ❌
True ✅
False ❌
🎉Perfect! You understand comparisons!
4 If-Else Choices 🔄
🎲Learn: else runs when the if question is NO (False)! Only ONE block runs.
🔥Experiment: Change temperature to 80 (hot day) then 50 (cold day). See how ONE path runs!
5 Password Checker 🔐
🎮Build: Create a program that checks if you know the secret password!
🤫Tips: Try typing "python123" to get in! Then try a wrong password. Change the secret to your own!
6 Elif - Many Choices! 🌟
🎯Learn: elif means "else if" - check multiple conditions! Python stops at the FIRST true one.
📊Test these scores: 95, 85, 72, 65, 45. Notice how it stops at the first true condition!
7 Final Quest: Adventure Game! 🏰
🗡️Epic Project: Create an adventure game with choices and consequences!
💪Level Up Challenges:
- Add a dangerous path with a BAD ending
- Add a second choice after each path
- Use age to unlock secret paths (if age >= 10)
- Create your own story theme!
🎉 You're a Decision-Making Master! 🎉
Your programs can now THINK and make CHOICES! 🧠
You learned: if, elif, else, and comparison operators!