asyncEasy Playground

Declares an asynchronous coroutine function or context manager

Python Playground
Output
Click "Run" to execute your code

async def creates a coroutine function. Calling it returns a coroutine object that must be awaited or run with asyncio.run().

Challenge

Try modifying the code above to explore different behaviors. Can you extend the example to handle a new use case?