EasyOutput prediction

Basic generator function output

What does this code print?

def count_up(n):
    i = 0
    while i < n:
        yield i
        i += 1

for val in count_up(3):
    print(val)

← → arrow keys to navigate

Sign in to save your progress.