Python Basics — Day 5 Conditional Statements (if / elif / else)
1️⃣ Basic if Statement
Code inside the block runs only if the condition is True.
age = 20
if age >= 18:
print("You are an adult.") # Condition is True → executed
⚠️ Note: Indentation matters! In Python, 4 spaces are recommended.
2️⃣ if ~ e...
sabinsim.hashnode.dev2 min read