Python generators tutorial | send | Part 3 of 6

preview_player
Показать описание
In this series of videos we talk about Python generator functions.

Why they are useful, how and when to use them, error handling etc. Become an expert Python developer by following my mini series tutorials on various aspects of the language.
Рекомендации по теме
Комментарии
Автор

If I understand correctly, 2, 4, 6, 8 are not generated in the first code is because when the gen.send triggered a new value to be yielded, 2, 4, 6, 8 are not captured?

chelseacsl