3 ms·
Which is why it specifically says "is similar to the list". But you may be surprised how many list-like operations `range` supports. Subscripting, `len`, `in`,
by alexmojaki 6y ago
Which is why it specifically says "is similar to the list".
But you may be surprised how many list-like operations `range` supports. Subscripting, `len`, `in`, `.count`, `.index`. It might as well be a tuple.
And if you want to nitpick more, range isn't a function.