<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/efficient-iterations-with-python-iterators-and-iterables-real-python-1rvmglphu" -->

---
title: Efficient Iterations With Python Iterators and Iterables...
description: Learn about Python iterators and iterables, including the differences between them. Explore how to create iterators using the iterator protocol and generator...
canonical: https://daily.dev/posts/efficient-iterations-with-python-iterators-and-iterables-real-python-1rvmglphu
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Efficient Iterations With Python Iterators and Iterables – Real Python | daily.dev
og:description: Learn about Python iterators and iterables, including the differences between them. Explore how to create iterators using the iterator protocol and generator...
og:url: https://daily.dev/posts/efficient-iterations-with-python-iterators-and-iterables-real-python-1rvmglphu
og:image: https://api.daily.dev/og/posts/1rvMGlphU.png
og:image:alt: Efficient Iterations With Python Iterators and Iterables – Real Python
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Efficient Iterations With Python Iterators and Iterables – Real Python

**[Real Python](https://daily.dev/sources/rpython)** · 1 min read · 24 upvotes · 0 comments

## Summary

Learn about Python iterators and iterables, including the differences between them. Explore how to create iterators using the iterator protocol and generator functions. Discover how to create asynchronous iterators using the asyncio module.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://realpython.com/courses/efficient-iterations-iterators-iterables/>

---

Tags: [#python](https://daily.dev/tags/python)

[View this post on daily.dev](https://daily.dev/posts/efficient-iterations-with-python-iterators-and-iterables-real-python-1rvmglphu)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Efficient Iterations With Python Iterators and Iterables – Real Python","url":"https://daily.dev/posts/efficient-iterations-with-python-iterators-and-iterables-real-python-1rvmglphu","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/efficient-iterations-with-python-iterators-and-iterables-real-python-1rvmglphu"},"datePublished":"2024-05-28T14:13:52.250Z","dateModified":"2024-08-23T15:04:45.448Z","description":"Learn about Python iterators and iterables, including the differences between them. Explore how to create iterators using the iterator protocol and generator...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/eadbb4d4efccdef304792a8ccd3feb8f?_a=AQAEuiZ","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/eadbb4d4efccdef304792a8ccd3feb8f?_a=AQAEuiZ","isAccessibleForFree":true,"articleSection":"Real Python","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Real Python","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/rpython","url":"https://daily.dev/sources/rpython"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/efficient-iterations-with-python-iterators-and-iterables-real-python-1rvmglphu","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":24},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"python","timeRequired":"PT1M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Real Python","item":"https://daily.dev/sources/rpython"},{"@type":"ListItem","position":3,"name":"Efficient Iterations With Python Iterators and Iterables – Real Python"}]}
```

