Skip to main content
← CoursesPython FoundationsModule 1 · Fundamentals of syntaxGrade calculatorscenario11 / 170
💬 Discuss🧪 Playground+100 XP
Task
📝 **Task:** Print a letter grade for a score. 📋 **Steps:** 1. `score = 85` is already set 2. Use an `if/elif/else` chain to determine the letter: - `score >= 90` → `"A"` - `score >= 80` → `"B"` - `score >= 70` → `"C"` - else → `"F"` 3. Print the letter 💡 **Similar example (age → category):** ```python age = 15 if age < 13: print("kid") elif age < 18: print("teen") elif age < 65: print("adult") else: print("senior") ``` ⚠️ **Hint:** `elif` is checked only if the previous `if` was False. Order matters! 🎯 **Expected output:** `B`

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…