Asyncio

Define an async Function

① Learn

An async function is defined with async def. It returns a coroutine that can be run by the asyncio event loop.

② Implement — write it, run it, submit
Goal

Define `greet()` so `asyncio.run(greet())` returns `hello`.

Output
Hints
  • Stuck? Reveal a hint.
Free Tools & Calculators