About 28,100 results
Open links in new tab
  1. Iterators and Iterables in Python: Run Efficient Iterations

    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 iterators and iterables to …

  2. Python Iterators - W3Schools

    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 …

  3. python - What are iterator, iterable, and iteration? - Stack Overflow

    Iteration is a general term for taking each item of something, one after another. Any time you use a loop, explicit or implicit, to go over a group of items, that is iteration. In Python, iterable and iterator have …

  4. Using Iterations in Python Effectively - GeeksforGeeks

    Jul 23, 2025 · Use of enumerate function and zip function helps to achieve an effective extension of iteration logic in python and solves many more sub-problems of a huge task or problem.

  5. Understanding Iteration in Python - CodeRivers

    Mar 22, 2025 · Iteration in Python refers to the process of repeating a block of code a certain number of times or until a specific condition is met. Python has two main types of iteration constructs: for loops …

  6. Iterations and loops — Interactive Python Course

    Loops help automate repetitive actions, allowing you to execute the same block of code multiple times. This saves time and makes your code cleaner and more efficient. What are iterations and loops? An …

  7. 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 to iterators, Python …

  8. 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 implement two …

  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. Iteration in Python: A Comprehensive Guide - CodeRivers

    Feb 22, 2025 · Iteration is a fundamental concept in programming that involves repeatedly executing a block of code. In Python, iteration is a powerful and flexible feature that allows developers to process …