Learning Python Generators

Go to class
Write Review

Free Online Course: Learning Python Generators provided by LinkedIn Learning is a comprehensive online course, which lasts for Less than 1 hour of material. The course is taught in English and is free of charge. Upon completion of the course, you can receive an e-certificate from LinkedIn Learning. Learning Python Generators is taught by Megan Amendola.

Overview
  • 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