About 1,460,000 results
Open links in new tab
  1. Python: how to determine if an object is iterable?

    Pythonic programming style that determines an object's type by inspection of its method or attribute signature rather than by explicit relationship to some type object ("If it looks like a …

  2. python - collections.Iterable vs typing.Iterable in type

    Oct 16, 2018 · I found that in Python both collections.Iterable and typing.Iterable can be used in type annotation and checking for whether an object is iterable, i.e., both isinstance(obj, …

  3. Iterators and Iterables in Python: Run Efficient Iterations

    Jan 6, 2025 · Python iterators are objects with .__iter__() and .__next__() methods. Iterables are objects that can return an iterator using the .__iter__() method. Generator functions use the …

  4. Iterables in Python

    Learn what are Python iterables. See types of iterables & their uses. Learn how to unpack iterables in single line & enumerate them in loop.

  5. Python Iterables: Unleashing the Power of Looping and Data

    Jan 24, 2025 · In the world of Python programming, iterables play a crucial role in handling collections of data. Whether you're working with lists, tuples, strings, or more complex data …

  6. Mastering Python Iterable Data Types: Lists, Sets, Tuples, and …

    Apr 11, 2024 · Explore the power of Python's iterable data types - lists, sets, tuples, and dictionaries. Mastering these tools transforms coding challenges, unlocking endless …

  7. Iterable, Ordered, Mutable, and Hashable Python Objects Explained

    Mar 15, 2022 · Iterable, ordered, mutable, and hashable (and their opposites) are characteristics for describing Python objects or data types. Despite being frequently used, these terms are …

  8. iterable | Python Glossary – Real Python

    In Python, an iterable is an object that can return its elements one at a time, allowing you to loop over it using a for loop or any other iteration tool. Technically, an iterable must implement the …

  9. Common Python Built-in Data Types Overview: is it mutable, iterable

    Apr 18, 2023 · Iterable: An object capable of returning its members one at a time. Examples of iterables include all sequence types (such as list, str, and tuple) and some non-sequence …

  10. Python Iterables: A Comprehensive Guide - CodeRivers

    Mar 20, 2025 · In Python, iterables play a crucial role in handling sequences of data. Whether you are working with simple lists, complex dictionaries, or custom data structures, understanding …

  11. Some results have been removed
Refresh