+ 1
How to use the yield statement?
3 Antworten
+ 3
Here's a tutorial that covers the basics:
https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2462/?ref=app
+ 3
Yield is somewhat then same as return.
You use return when you expect one value back from your function. And yield when you are expecting a number of values back.
+ 2