Medium
Errors in gather
Coroutine
check(n) raises ValueError for negative n and returns n otherwise. Gather all input numbers with return_exceptions=True and print each result, using error for exceptions.Input
One line of integers.
Output
One line.
Sample 1
Input
1 -2 3
Output
1 error 3
Sample 2
Input
5
Output
5
Output appears here