Skip to main content
🔒 Preview mode. The first 15 Foundations lessons are free; this one is Pro. Start a 7-day trial to unlock the editor, AI hints and the rest of the curriculum. Card required, cancel any time in Dashboard.Start 7-day trial →
← CoursesPython FoundationsModule 3 · Functions and stringsFillings: double cyclefill43 / 174
+100 XP
Task
📝 **Task:** Fill in the gap to print a 3×3 multiplication table. ``` 1 2 3 2 4 6 3 6 9 ``` 📋 **Steps:** 1. Outer loop for rows: `for row in range(1, 4)` 2. Inner loop for cols: `for col in range(1, 4)` 3. Print `row * col` with `end=" "` 4. After each row, empty `print()` 💡 **Similar example (addition 2×2):** ```python for i in range(1, 3): for j in range(1, 3): print(i + j, end=" ") print() ```
✏️ 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…