for i in range(10): yield i
def get_values(data): yield from data for i in get_values(range(10)): pass
Used when a yield statement is found outside a function or method.
yield