Python · Generators & Iterators
What does this print? def sub(): yield 1 return 99 def main(): result = yield from sub() print('sub returned', result) print(list(main()))
Answer locked. Get the free KnowCard app to reveal it — plus spaced-repetition review so it actually sticks.
