async — Intermediate Playground
Declares an asynchronous coroutine function or context manager
Python Playground
Output
Click "Run" to execute your codeasyncio.gather() runs multiple coroutines concurrently. Unlike threads, async switches tasks at await points, not preemptively.
Challenge
Try modifying the code above to explore different behaviors. Can you extend the example to handle a new use case?