Skip to main content

Practice ยท 1 of 2

Async Hello

Implement async def hello(name) that awaits asyncio.sleep(0.01) then returns f'hello {name}'. Then implement sync def run_hello(name) that uses asyncio.run to return hello(name)'s result.

Difficulty: intermediate

Back to lesson: Practice: Coroutine Drills