drag to orbit · scroll to zoom
← Playground

🎡 Ferris Wheel · range

range(N) makes a row of numbered cabins: 0, 1, 2 … N-1. Each cabin comes around to the boarding platform once. Watch the numbers — they start at ZERO.

Number of cabins (N)
5
current i = —
Set N, then spin. Each cabin visits the platform once.
Python code

💡 range(5) gives 0, 1, 2, 3, 4 — five numbers, starting at zero, ending at four. Not 1 to 5!