Discussion about this post

User's avatar
Patricia Toffey's avatar

print("The sum of the numbers is: " + str(calculate_sum(numbers_list)))

Expand full comment
Navya's avatar

def sum_list(n):

total = 0

for i in n:

total += i

return total

n = list(map(int, input("Enter numbers separated by commas: ").split(",")))

print("The sum is", str(sum_list(n)))

Expand full comment
10 more comments...

No posts