About 7,520 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. Functions creating iterators for efficient looping - Python

    3 days ago · Make an iterator that returns accumulated sums or accumulated results from other binary functions. The function defaults to addition. The function should accept two arguments, an …

  3. Iterables in Python

    Iterables is one of the basic and most important concepts of Python. In this article, we learn about iterables, their types, and several other functions that help us when working with iterables.

  4. Python Iterators - W3Schools

    Iterator vs Iterable Lists, tuples, dictionaries, and sets are all iterable objects. They are iterable containers which you can get an iterator from. All these objects have a iter() method which is used to …

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

    In Python, iterable and iterator have specific meanings. An iterable is an object that has an __iter__ method which returns an iterator, or which defines a __getitem__ method that can take sequential …

  6. Python | Difference between iterable and iterator - GeeksforGeeks

    Jul 11, 2025 · An iterator can be created from an iterable by using the function iter (). To make this possible, the class of an object needs either a method __iter__, which returns an iterator, or a …

  7. An Essential Guide to Python Iterables By Practical Examples

    This tuorial helps you understsand Python iterables and how they work. It also explains the iterators concept in a clear way.

  8. Python Iterables, Iterators & Generators: A Complete Guide [10 ...

    An iterable in Python means that an object can be looped through with a for or while loop. Lists, tuples, dicts, strings are all iterables.

  9. Iterables - Python Like You Mean It

    Definition: An iterable is any Python object capable of returning its members one at a time, permitting it to be iterated over in a for-loop. Familiar examples of iterables include lists, tuples, and strings - any …

  10. 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 programming.