Comment on Python Performance: Why 'if not list' is 2x Faster Than Using len()

<- View Parent
48954246@lemmy.world ⁨4⁩ ⁨days⁩ ago

An iterable is just something that can be iterated over, like range(10), or [1, 2, 3].

A sequence on the other hand is a Collection that is reversible.

docs.python.org/3/library/collections.abc.html#co…

source
Sort:hotnewtop