+ 5
Generators
I didn't understood the concept, can some one explain me
1 ответ
+ 3
@David Ashton shared to another thread.
Yield is a keyword like return, except it returns a generator.
https://pythontips.com/2013/09/29/the-JUMP_LINK__&&__python__&&__JUMP_LINK-yield-keyword-explained/
You can also read here.
https://www.programiz.com/python-programming/generator
I have an example how to use generators yield
https://code.sololearn.com/cA8872jH3I99/?ref=app