Python 3 iter() built-in function TUTORIAL

preview_player
Показать описание
Tutorial on how to use the iter() built-in function from the Python 3 Standard Library.

📖 You can check out the Udemy course (Python Built-in Functions) here:

Documentation:

⚙️ Recommended Computer Gear:

✈️ Recommended Digital Nomad Gear:
Рекомендации по теме
Комментарии
Автор

It says function object is not iterable when I tried your example for the randomrange 🤔

g.g
Автор

I have a doubt in Iterator and Generator point, that is

No local variables are used in Iterators.
All the local variables are stored before the yield statement in Generator.
Please anyone clear this my doubt.

masterhipster
Автор

is iter more memory efficient then if i use for loop to read the content from a file ?

satoshinakamoto