Q:

Write a Python program to sum all the items in a list

0

Write a Python program to sum all the items in a list.

All Answers

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

def sum_list(items):
    sum_numbers = 0
    for x in items:
        sum_numbers += x
    return sum_numbers
print(sum_list([1,2,-8]))

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