LearnPy Hub
← Functions problems
Medium

Any Number of Arguments

Write total(*nums) that returns the sum of any number of arguments. Read a line of integers and print total(*numbers), then total().

Input

One line of integers.

Output

Two lines.

Sample 1

Input
1 2 3
Output
6
0

Sample 2

Input
10
Output
10
0
solution.py
Output appears here
Any Number of Arguments · Python practice problem · LearnPy Hub