0
Association between generators and yield
What is a generator function and what is its association with the yield function.
2 ответов
+ 3
actually, a generator is a function that contains at least one yield statement
0
The yield statement is used to define a generator, replacing the return of a function to provide a result to its caller without destroying local variables.