Skip to content

Zero to four

Zero to four

Print the numbers 0, 1, 2, 3, 4, one per line, using range(5).

⚠️ range(5) starts at 0 and stops before 5 — five numbers, none of them 5. That is the same rule as a slice.

Log in or create account

IGCSE, A-Level & AP