LearnPy Hub
← Async Basics problems
Easy

gather() Results

Write a coroutine square(n). Use asyncio.gather to square every input number concurrently and print the list of results.

Input

One line of integers.

Output

A list.

Sample 1

Input
1 2 3
Output
[1, 4, 9]

Sample 2

Input
5
Output
[25]
solution.py
Output appears here
gather() Results · Python practice problem · LearnPy Hub