Science, asked by sjsjs9484, 15 days ago

A generator function returns a sequence of values by using a statement is

Answers

Answered by vidhi6013
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