Intermediate
Python
Q86 / 101
What is asyncio.gather() used for?
Correct! Well done.
Incorrect.
The correct answer is B) Running multiple awaitables concurrently and gathering their results into a list
B
Correct Answer
Running multiple awaitables concurrently and gathering their results into a list
Explanation
results = await asyncio.gather(fetch(url1), fetch(url2), fetch(url3)) runs all three concurrently and collects results in order.
Progress
86/101