Listen free for 30 days

  • Guide to: Learning Iteration and Generators in Python

  • Written by: Matt Harrison
  • Narrated by: John Edmondson
  • Length: 2 hrs and 17 mins

Pick 1 audiobook a month from our unmatched collection.
Listen all you want to thousands of included audiobooks, Originals, and podcasts.
Access exclusive sales and deals.
Premium Plus auto-renews for $14.95/mo + applicable taxes after 30 days. Cancel anytime.
Guide to: Learning Iteration and Generators in Python cover art

Guide to: Learning Iteration and Generators in Python

Written by: Matt Harrison
Narrated by: John Edmondson
Try for $0.00

$14.95 a month after 30 days. Cancel anytime.

Buy Now for $9.20

Buy Now for $9.20

Pay using card ending in
By confirming your purchase, you agree to Audible's Conditions of Use and Amazon's Privacy Notice. Tax where applicable.

Publisher's Summary

This book is one portion of Treading on Python Volume 2: Intermediate Python. That book covers this book and more. If you are interested in only iteration and generators, this book has you covered. Otherwise, check out Treading on Python Volume 2.

Iteration and Generators

Understanding iteration enables understanding generators and easily creating objects that can iterate. This guide will explain the theory behind iteration in Python and teach best practices for generator creation and use. Do not beware the yield; rather, embrace the power it provides.

The guide covers:

  • Iteration protocol
  • Iterators
  • Iterables
  • Class iteration
  • The yield statement
  • Generators
  • Function generators
  • Class generators
  • Writing Python code like the masters

These constructs, while not necessary per se, allow you to be more succinct, reuse code, and think about code in a different way. You will learn:

  • How the constructs work
  • When to use them
  • Real-life examples from the standard library
  • How to understand others' code

This book covers many of these intermediate constructs that are available in Python. The book covers both Python 2 and 3. Topics include:

  • Iteration
  • Generators
  • Using them with classes
  • Real-world examples of their use
©2013 Matt Harrison (P)2015 Matt Harrison

Love Books? You'll Love Audible.

Placeholder Image Alt Text

Transform your day

Replace endless scrolling with endless listening. Chores can be fun.

Placeholder Image Alt Text

Listen everywhere

Download titles to listen offline, wherever you are in the world.

Placeholder Image Alt Text

Carry your entire Library

Your stories go where you go. Audiobooks don’t weigh a thing.

Placeholder Image Alt Text

Listen and learn

Discover stories that can change your mind, your well-being, and your life.

Placeholder Image Alt Text

Reach your reading goals

You can’t turn pages while you drive—but you can press play.

Placeholder Image Alt Text

Find your niche

WIth thousands of titles to explore, there’s something for everyone.

Try for $0.00 $14.95 per month after 30 days. Cancel anytime.

What listeners say about Guide to: Learning Iteration and Generators in Python

Average Customer Ratings

Reviews - Please select the tabs below to change the source of reviews.