Skip to main content
← CoursesPython FoundationsModule 1 · Fundamentals of syntaxfor loopfill12 / 174
+60 XP
Task
📝 **Task:** Fill in the blank so the loop prints numbers 1 to 5. 📋 **Steps:** - Currently `for i in ___` — the range is missing - Use `range(1, 6)` (to include 5, pass right bound + 1) 💡 **Similar example:** ```python for n in range(1, 4): print(n) # 1 # 2 # 3 ``` ⚠️ **Hint:** `range(a, b)` yields `a, a+1, ..., b-1`. Right bound is NOT included. 🎯 **Expected output:** ``` 1 2 3 4 5 ```
✏️ Write your code here
🐍
Loading Python...
One-time download (~1 MB). Then it runs instantly.
📊 Result
Press Run to see result...

💬 Discussion

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