🐍 Grade 6 Python Practice
Grade 5-6 — Conditions & Loops
Choose an exercise:
1. If / else
Check if a number is big or small.
💡 Hint: Change 15 to 5 and run again — see what changes.
2. For loop
Print numbers 1 to 5 using a loop.
💡 Hint: range(1, 6) gives 1, 2, 3, 4, 5. Try range(1, 11) for 1 to 10.
3. Loop through a list
Print each item in a list.
💡 Hint: Add your own fruit to the list and run again.
💡 How to use this editor
▶
Run your code — green button or Ctrl+Enter
✏️
Edit freely — change values and run again
🔴
Errors are okay — read the message and fix it
🔄
Stuck? — pick another exercise for fresh code
✏️ Your Code
Output:
— click Run Code to see output —