Review Note
Last Update: 05/03/2024 09:06 PM
Current Deck: Python::Python - Advanced
Published
Fields:
Front
Write a simple coroutine
Back
def simple_coroutine():
print('-> coroutine started')
while True:
x = yield
print('-> coroutine received:', x)
my_coro = simple_coroutine()
next(my_coro)
my_coro.send(42)Suggested Changes:
Deck Changes (Suggestion to move the Note to the following Deck):
Field Changes:
Tag Changes: