About 68,200 results
Open links in new tab
  1. Iterator - Wikipedia

    In computer programming, an iterator is an object that progressively provides access to each item of a collection, in order. [1][2][3] A collection may provide multiple iterators via its interface that …

  2. Python Iterators - W3Schools

    There are two methods that you have to implement when you create an iterator, which two? Well organized and easy to understand Web building tutorials with lots of examples of how to use …

  3. Iterators in Python - GeeksforGeeks

    Sep 3, 2025 · Creating a custom iterator in Python involves defining a class that implements the __iter__ () and __next__ () methods according to the Python iterator protocol. Steps to follow: …

  4. Python Iterators (With Examples) - Programiz

    In this tutorial, you will learn about the Python Iterators with the help of examples.

  5. Iterators and Iterables in Python: Run Efficient Iterations

    Jan 6, 2025 · Understanding iterators and iterables in Python is crucial for running efficient iterations. Iterators control loops, allowing you to traverse arbitrary data containers one item at …

  6. Python Iterators - Python Geeks

    Learn what are Python iterators with working and examples. See how to create iterators & how to use the next () function.

  7. Iterator - Python Wiki

    A: Iterators will typically need to maintain some kind of position state information (e.g., the index of the last element returned). If the iterable maintained that state itself, it would become …

  8. Iterables and Iterators - LeetPython

    Dive deep into the world of Python iterables and iterators. Understand the difference between iterables and iterators, how to use them effectively, and why they are fundamental to Python …

  9. Python Iterator | Docs With Examples - Hackr

    Iterators in Python provide a way to traverse through a sequence (such as lists, tuples, or strings) one element at a time. They are a fundamental part of Python’s iteration protocol.

  10. Python Iterators: A Comprehensive Guide - CodeRivers

    Jan 26, 2025 · In Python, iterators play a crucial role in handling sequences of data. They provide a standardized way to traverse through elements in various data structures like lists, tuples, …