19
What is the output of the following code?
def gen():
x = yield 1
yield x * 10
g = gen()
print(next(g), g.send(5))Hard
What is the output of the following code?
def gen():
x = yield 1
yield x * 10
g = gen()
print(next(g), g.send(5))Log in to join the discussion.