A generator function returns a sequence of values by using a statement is
Answers
Answered by
1
Explanation:
A generator is a special type of function which does not return a single value, instead, it returns an iterator object with a sequence of values. In a generator function, a yield statement is used rather than a return statement. ... So, this will return the value against the yield keyword each time it is called.
Similar questions
English,
7 days ago
Science,
7 days ago
English,
15 days ago
Economy,
15 days ago
Computer Science,
8 months ago