Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

LinkedIn Learning

Learning Python Generators

via LinkedIn Learning

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Learn what Python generators are, what they’re used for, how to create them, and ways you can use them in your own code.

Syllabus

Introduction
  • About the Python generators
  • Previous knowledge
  • Project files
1. Understanding Generator Functions
  • What are Python generators?
  • Generator functions
  • Interacting with the generator object
  • Generators and memory
  • Challenge: Squaring numbers
  • Solution: Squaring numbers
2. Generator Expressions
  • Reviewing Python comprehensions
  • Generator expressions
  • Working with expressions
  • Comprehensions vs. expressions
  • Challenge: Most words
  • Solution: Most words
3. Generator Pipelines
  • What is a pipeline?
  • Challenge: Counting characters
  • Solution: Counting characters
4. Practice Python Generators
  • Challenge: Weather data
  • Solution: Weather data
Conclusion
  • Next steps

Taught by

Josh McQuiston

Reviews

4.6 rating at LinkedIn Learning based on 97 ratings

Start your review of Learning Python Generators

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.