3 ms·
To take one example >>> range(10) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] So that's what range() does! >>> range(10) range(0, 10) Uhhh... I love iterators,
by TorKlingberg 10y ago
To take one example
>>> range(10)
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
So that's what range() does!
>>> range(10)
range(0, 10)
Uhhh...
I love iterators, but they're not an obvious concept at first.