0 votes
in Other by

Write a function to give the sum of all the numbers in the list?

1 Answer

0 votes
by

def sum(numbers):total = 0 for num in numbers:total+=numprint(''Sum of the numbers: '', total)sum((10, 20, 30, 40, 0, 50))

Skyrocket Your AWS Career: Earn Top Salaries!

...