Python Professional — Hard
Key points
- asyncio.gather() collects results in the order of tasks passed
- Each task returns n * 2
- The results list will contain the doubled values of 1, 2, and 3
- The output will be [2, 4, 6]
Ready to go further?
Related questions
