About 10,900,000 results
Open links in new tab
  1. Python Iterators - W3Schools

    Technically, in Python, an iterator is an object which implements the iterator protocol, which consist of the methods __iter__() and __next__(). Iterator vs Iterable Lists, tuples, dictionaries, …

  2. Iterators in Python - GeeksforGeeks

    Dec 16, 2024 · An iterator in Python is an object that holds a sequence of values and provide sequential traversal through a collection of items such as lists, tuples and dictionaries. . The …

  3. Iterators and Iterables in Python: Run Efficient Iterations

    Jan 6, 2025 · What Is an Iterator in Python? In Python, an iterator is an object that allows you to iterate over collections of data, such as lists, tuples, dictionaries, and sets. Python iterators …

  4. Python Iterator: Example Code and How it Works

    Jun 24, 2024 · What is a Python iterator? Learn it here, including lots of example code to iterate lists, dictionaries, files, and generators.

  5. Python Iterators (With Examples) - Programiz

    Iterators are methods that iterate collections like lists, tuples, etc. Using an iterator method, we can loop through an object and return its elements. Technically, a Python iterator object must …

  6. Python Iterators - Python Geeks

    Iterators are Python objects that iterate over iterable objects. They follow and implement the iterator protocol. The most important method of an iterator is __next__().

  7. What is an iterator? - Python Morsels

    Mar 14, 2022 · We know what an iterable is. An iter able is anything that you're able to iterate over. An iter ator is the object that actually performs the iteration over an iterable. From …

  8. Iteration in Python: A Comprehensive Guide - CodeRivers

    Jan 26, 2025 · In Python, iteration is a powerful and flexible feature that enables you to work with sequences (such as lists, tuples, strings) and other iterable objects efficiently. Understanding …

  9. Python Iter: A Comprehensive Guide to Iteration in Python

    Aug 2, 2023 · What is Python iteration? Python iteration refers to repeatedly executing a code block until a specific condition is met. It allows you to work with data collections by accessing …

  10. Python Iterators with examples: Creation and Usage Guide

    Aug 23, 2024 · In Python, an iterator is an object that can be iterated (looped) upon. An iterator returns one element at a time from a sequence, like a list, tuple, or string. Understanding …

  11. Some results have been removed
Refresh