Guide to: Learning Iteration and Generators in Python cover art

Guide to: Learning Iteration and Generators in Python

Preview
Get this deal Try Premium Plus free
Offer ends 29 January 2026 at 11:59PM GMT.
Prime members: New to Audible? Get 2 free audiobooks during trial.
Just £0.99/mo for your first 3 months of Audible.
1 bestseller or new release per month—yours to keep.
Listen all you want to thousands of included audiobooks, podcasts, and Originals.
Auto-renews at £8.99/mo after 3 months. Cancel monthly.
Pick 1 audiobook a month from our unmatched collection - including bestsellers and new releases.
Listen all you want to thousands of included audiobooks, Originals, celeb exclusives, and podcasts.
Access exclusive sales and deals.
£8.99/month after 30 days. Renews automatically.

Guide to: Learning Iteration and Generators in Python

By: Matt Harrison
Narrated by: John Edmondson
Get this deal Try Premium Plus free

£8.99/mo after 3 months. Cancel monthly. Offer ends 29 January 2026 at 11:59PM GMT.

£8.99/month after 30 days. Renews automatically. See here for eligibility.

Buy Now for £6.99

Buy Now for £6.99

LIMITED TIME OFFER | £0.99/mo for the first 3 months

Premium Plus auto-renews at £8.99/mo after 3 months. Terms apply.

About this listen

This book is one portion of Treading on Python Volume 2: Intermediate Python. That book covers this book and more. If you are interested only in 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
Career Success Programming Programming & Software Development Programming Languages Software Development Career Employment Technology Software

Listeners also enjoyed...

Java Programming: 2 Books in 1 cover art
C#: Programming Success in a Day cover art
C# Programming Illustrated Guide for Beginners and Intermediates: The Future Is Here! cover art
JavaScript Professional Programming Made Easy, 2nd Edition cover art
Javascript for Beginners cover art
Functional Programming in JavaScript cover art
JavaScript (7th Edition) cover art
Functional Programming in Scala cover art
Python Programming Illustrated for Beginners & Intermediates: The Future Is Here! cover art
JavaScript: Elite JavaScript Coding from the Ground Up cover art
JavaScript cover art
Clean Code cover art
No reviews yet