I have started learning python.
I don't know how to pass values for function?
Here is the code:
def summation(*numbers):
add = 0
for y in numbers:
add = add + y
return add
n = int(input("How many numbers you want to add: "))
for x in range(1, n + 1):
int(input("Enter number: "))
print("Sum:", summation())
print("Sum:", summation())
How can I pass for summation?