* refactor: clean to roadmap content * refactor: move shared helpers into scripts/lib
9 lines
680 B
Markdown
9 lines
680 B
Markdown
# Iterators
|
|
|
|
An iterator is an object that contains a countable number of values. An iterator is an object that can be iterated upon, meaning that you can traverse through all the values. Technically, in Python, an iterator is an object which implements the iterator protocol, which consist of the methods **iter**() and **next**() .
|
|
|
|
Visit the following resources to learn more:
|
|
|
|
- [@official@Python Official Documentation on Iterators](https://docs.python.org/3/tutorial/classes.html#iterators)
|
|
- [@article@Python Iterators](https://www.programiz.com/python-programming/iterator)
|
|
- [@article@Iterators and Iterables in Python](https://realpython.com/python-iterators-iterables/) |