Posts by rodrigobmedeiros • 1 point
1 post
-
-1
votes3
answers15296
viewsA: What is Yield for?
Yield is part of the python iterator protocol, it avoids you having to create the iterable element effectively, making your code more scalable, saving memory mainly. As an example, imagine that you…