6
What is the output of the following code?
def gen():
yield 1
yield 2
print(list(gen()))Easy
What is the output of the following code?
def gen():
yield 1
yield 2
print(list(gen()))Log in to join the discussion.