Delegating With Yield From
def sub():
yield 1
yield 2
return 99
def outer():
result = yield from sub()
yield result
print(list(outer()))
What does this print?
Sign in to answer questions and track your progress
Sign Indef sub():
yield 1
yield 2
return 99
def outer():
result = yield from sub()
yield result
print(list(outer()))
What does this print?
Sign in to answer questions and track your progress
Sign In