Python · Generators & Iterators
In a consuming generator, one of these lines does NOT do what it looks like. Which, and why? a = yield # (1) a = yield 5 # (2) a = (yield) + 10 # (3) a = yield + 10 # (4)
Answer locked. Get the free KnowCard app to reveal it — plus spaced-repetition review so it actually sticks.
