Yielding From...Return!
We'll cover the following...
Can we yield from return???
1.
What do you think the output of the following code will be?
⚠️ The following code is meant for > Python 3.3 versions.
Press + to interact
def some_func(x):if x == 3:return ["ftw"]else:yield from range(x)print(list(some_func(3)))
2.
Where did the "ftw"
go in the above code? Did it disappear due to ...