Day 5 — if–else (Making Decisions)

Python Starter Club • Programmer’s Picnic • Champak Roy

Today we teach Python what to do when a condition is False.

Comic

🎨 Day 5 Comic — if–else

Day 5 if-else comic
Lesson

🧠 Understanding if–else

if condition:
    print("YES")
else:
    print("NO")
age = int(input("Enter age: "))
if age >= 18:
    print("Eligible")
else:
    print("Not eligible")
📝 Day 5 Task
Ask the user for a number.
If the number is even print "Even", else print "Odd".
Interactive

🎛️ Even / Odd (Preview)

Flowchart

🔀 Decision Flow

Only one path is taken. The other is ignored.

n % 2 == 0 ? Even Odd
✅ STOP HERE FOR TODAY
If you understand even/odd using if–else, today is complete.
Advanced (Optional)

Preview of tomorrow: multiple conditions using elif.

if marks >= 90:
    print("A")
elif marks >= 60:
    print("B")
else:
    print("Fail")
Pyodide

🐍 Run Python

Output will appear here…