Sobes.tech
Junior — Senior

Research of generator function behavior using yield

livecode

Task condition

What does the following code fragment look like:


def z():
    for i in range(10):
        yield i

What does this function do and how does the yield operator work?