mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2026-11-25 06:57:02 +08:00
10 lines
786 B
Markdown
10 lines
786 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/)
|
|
- [@article@Master Python Filter: Syntax, Examples, and Best Practices](https://roadmap.sh/python/filter) |