Skip to main content
⚡
← Courses
›
Senior Deep-Dives
›
Module 6 · Architecture & Code Review
›
Generators: yield from + send
quiz
92 / 101
🇺🇸
EN
▼
↗
Share
💬 Discuss
🧪 Playground
+100 XP
📋
Task
📖
Theory
🤖
AI Help
Task
📝 **Question:** When does yield from shine? 📋 Pick the right answer. 💡 **Hint:** Re-read the theory above if unsure.
Keep going
🧠
quiz
Pickling: security warning
🧠
quiz
asyncio: event loop deep-dive
🧠
quiz
Typing: TypeVar, Generic, Protocol
🎯 Quiz
Question
📝 **Question:** When does yield from shine? 📋 Pick the right answer. 💡 **Hint:** Re-read the theory above if unsure.
A
Never.
B
Tree traversal or nested iteration — `yield from inner()` is cleaner than `for x in inner(): yield x` and propagates throw/close correctly.
C
Replaces async.
D
It's slow.
Submit answer
📣 Help someone learn Python
Share this lesson with a friend — the first 15 are free, no signup.
📣 Share
Tweet
💬 Discussion
Be the first to ask a question or share a tip.
Sign in
to join the discussion. Reading is free.
Loading discussion…