Generators and Iterators in Python #30

Опубликовано: 29 Сентябрь 2024
на канале: Programming Is Fun
913
21

In this video lecture, You will learn about how Generators and Iterators works, Using generators and iterators we can save a lot of memory using the yield keyword .

Python generators are an easy and simple way of creating iterators, and is mainly used to declare a function that behaves like an iterator and we will see how we can use iterators which is iter( ) and next( ).