Q:

Write a Python function to sum all the numbers in a list

0

Write a Python function to sum all the numbers in a list

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

def sum(numbers):
    total = 0
    for x in numbers:
        total += x
    return total
print(sum((8, 2, 3, 0, 7)))

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now