About 1,190,000 results
Open links in new tab
  1. Iterators in Python - GeeksforGeeks

    Sep 3, 2025 · Although the terms iterator and iterable sound similar, they are not the same. An iterable is any object that can return an iterator, while an iterator is the actual object that …

  2. Python Iterators - W3Schools

    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, …

  3. Iterators and Iterables in Python: Run Efficient Iterations

    Jan 6, 2025 · In this tutorial, you'll learn what iterators and iterables are in Python. You'll learn how they differ and when to use them in your code. You'll also learn how to create your own …

  4. Python Iterators (With Examples) - Programiz

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

  5. Python Iterator: Example Code and How it Works

    Jun 24, 2024 · Elements are requested using a method called __next__. An object that implements another special method, called __iter__. This function returns an iterator. Thanks …

  6. Python Iteration: A Comprehensive Guide - CodeRivers

    Mar 9, 2025 · Understanding how to iterate effectively in Python is essential for writing efficient and clean code. This blog post will cover the basic concepts of Python iteration, various usage …

  7. Iterators in Python: Explained With Examples

    Sep 24, 2024 · Learn about Iterators in Python with examples. Understand how to create and use iterators for efficient looping and data handling in your Python projects.

  8. Python - Iterators - Online Tutorials Library

    Python's built-in method iter () implements __iter__ () method. It receives an iterable and returns iterator object. Following code obtains iterator object from sequence types such as list, string …

  9. Python Iterators - Python Geeks

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

  10. Mastering Iteration in Python - A Comprehensive Guide

    Apr 21, 2024 · Iteration is the process of going through a sequence of items one by one. In Python, we can iterate over various data structures like lists, tuples, dictionaries, and more. …