MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Python/comments/maofgm/best_answer_to_what_does_yield_do/grw2fsu/?context=3
r/Python • u/AbstProcDo • Mar 22 '21
10 comments sorted by
View all comments
3
Fun way to think about it - return is one time purchase whereas yield is like a gym membership, that doesn’t end unless you end!
0 u/AbstProcDo Mar 23 '21 ty, dude, I assume that imagination and metaphor helpful for our learning.
0
ty, dude, I assume that imagination and metaphor helpful for our learning.
3
u/kkiran Mar 23 '21
Fun way to think about it - return is one time purchase whereas yield is like a gym membership, that doesn’t end unless you end!