Output Order

Report a typo

Select the right output from the list below:

import asyncio

async def task_one():
    print("Starting task one")
    await asyncio.sleep(2)
    print("Task one completed")

async def task_two():
    print("Starting task two")
    await asyncio.sleep(1)
    print("Task two completed")

async def main():
    await asyncio.gather(task_one(), task_two())
    print("Main function completed")

Select one option from the list
___

Create a free account to access the full topic