They are iterable, but they are not iterators. They can be passed to iter()
to get an iterator for them either implicitly (e.g. via for
) or explicitly, but they are not iterators in and of themselves.
More Related Contents:
- How to iterate through two lists in parallel?
- Modifying list while iterating [duplicate]
- Iterate over all pairs of consecutive items in a list [duplicate]
- Circular list iterator in Python
- How can I iterate through two lists in parallel?
- How do I iterate through two lists in parallel?
- Making a python iterator go backwards?
- Python range() and zip() object type
- How do you remove duplicates from a list whilst preserving order?
- Get the cartesian product of a series of lists?
- Does “IndexError: list index out of range” when trying to access the N’th item mean that my list has less than N items?
- sort() and reverse() functions do not work
- How to split elements of a list?
- Grouping Python dictionary keys as a list and create a new dictionary with this list as a value
- How do I initialize a dictionary of empty lists in Python?
- List vs tuple, when to use each? [duplicate]
- Interleaving Lists in Python [duplicate]
- Does a slicing operation give me a deep or shallow copy?
- Skip multiple iterations in loop
- Confused about __str__ on list in Python [duplicate]
- Print LIST of unicode chars without escape characters
- Confusing […] List in Python: What is it?
- What is time complexity of a list to set conversion?
- remove None value from a list without removing the 0 value
- Filtering a list based on a list of booleans
- Creating an empty list in Python
- Python string.join(list) on object array rather than string array
- Convert a number to a list of integers [duplicate]
- Unexpected Behavior of Extend with a list in Python [duplicate]
- count occurrence of a list in a list of lists