In what order does this program print its four lines?

from asyncio
Python 3.14 beginner 2 min

In what order does this program print its four lines?

Python
import asyncio

async def worker(label, delay):
    print(f"start {label}")
    await asyncio.sleep(delay)
    print(f"done {label}")

async def main():
    await asyncio.gather(worker("A", 0.02), worker("B", 0.01))

asyncio.run(main())
Open in playground
Report an error