Sum three numbers
Input
sum_all(1, 2, 3)
Output
6
1 + 2 + 3 equals 6.
Full lesson preview
Use *args to accept a variable number of positional arguments and process them.
Problem statement
Task
Examples
Input
sum_all(1, 2, 3)
Output
6
1 + 2 + 3 equals 6.
Input format
Output format
Constraints
Samples
Input
sum_all()
Output
0
No arguments provided, so the sum is 0.