range() v slice()
A range is not a slice and a slice is not a range. But they look the same.
They both take step as a third argument.
But one is iterable and the other is not.
One can be used as a list indices, one cannot.
They both conform to the start
, stop
, step
interface.
You can slice a range but you can't range a slice.
Tweet