Skip to main content
← CoursesPython FoundationsModule 1 · Fundamentals of syntaxif/else conditionfill8 / 170
💬 Discuss🧪 Playground+60 XP
Task
📝 **Task:** Fill in the `if/else` condition. The code is almost done. Just one missing comparison operator. 📋 **Steps:** 1. Find the line `if age 18:` (operator missing) 2. Insert the correct comparison: check that "age is at least 18" 3. Run — should print `Adult` 💡 **Similar example:** ```python temperature = 25 if temperature > 20: print("Warm") else: print("Cool") # With 25 prints: Warm ``` 📋 **Comparison operators:** ``` > greater than < less than >= greater than or equal <= less than or equal == equal != not equal ``` ⚠️ "At least 18" means "18 or greater". Which operator?

Keep going

✏️ Write your code here
🐍
Loading Python...
First visit only — ~5-10s. Stays cached afterward.
📊 Result
Press Run to see result...
📣 Help someone learn PythonShare this lesson with a friend — the first 15 are free, no signup.Tweet

💬 Discussion

Be the first to ask a question or share a tip.
Sign in to join the discussion. Reading is free.
Loading discussion…