LearnPy Hub
← Async Basics problems
Easy

Add Up Results From gather()

Write async def value(x) that returns x after a tiny sleep. Read integers, gather value() for all of them and print the sum of the results.

Input

Integers separated by spaces.

Output

One integer.

Sample 1

Input
1 2 3
Output
6

Sample 2

Input
10
Output
10
solution.py
Output appears here
Add Up Results From gather() · Python practice problem · LearnPy Hub