await — Easy Playground
Pauses execution of an async coroutine until a result is available
Python Playground
Output
Click "Run" to execute your codeawait pauses the current coroutine until the awaited one completes, then returns its result. You can only use await inside async functions.
Challenge
Try modifying the code above to explore different behaviors. Can you extend the example to handle a new use case?