* Link python roadmap topics to related python guides * Update basic-syntax@6xRncUs3_vxVbDur567QA.md * Update conditionals@NP1kjSk0ujU0Gx-ajNHlR.md * Update data-structures--algorithms@VJSIbYJcy2MC6MOFBrqXi.md * Update exceptions resource list Removed two resources related to Python exceptions from the list. * Update file-handling@Nf3kRDSl_vas6QPXG7eVa.md * Update object-oriented-programming@P_Di-XPSDITmU3xKQew8G.md * Update tuples@i7xIGiXU-k5UIKHIhQPjE.md --------- Co-authored-by: Javier Canales <56018501+jcanalesluna@users.noreply.github.com>
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) |