LearnPy Hub
← Async Basics problems
Easy

Total With gather()

Each input number is 'fetched' by a coroutine fetch(n) returning n after a tiny sleep. Gather them and print the total.

Input

One line of integers.

Output

The sum.

Sample 1

Input
1 2 3
Output
6

Sample 2

Input
7
Output
7
solution.py
Output appears here
Total With gather() · Python practice problem · LearnPy Hub