Skip to main content

Practice · 1 of 2

Async Hello

CHALLENGE
Difficulty: intermediate+25 XP

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.

Back to lesson: Practice: Coroutine Drills