Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

README.md

Learn Python with Let Us DevOps

Day 7: Iterators and Generators.

Iterators are a way to iterate though a lis tof objects, You can implement iterators yourself for any class.

Task 1: Read about Iterators: What are iterators and how to use them?

Task 2: Try to create iterators and use it.

Here is a small problem for you. Create a list of unlimited numbers? How will you approach this problem. You cannot create the list and save it in memory as it will require unlimited memory. This is where generators comes in and solve such problems.

Task 3: Read about Generators in python and use it. Generators in Python

How to contribute in Open Source

This is it for Day 7. All the best!