Files
programming-examples/python/List/Python program to multiplies all the items in a list.py
Michael Reber b880c3ccde Initial commit
2019-11-15 12:59:38 +01:00

6 lines
135 B
Python

def multiply_list(items):
tot = 1
for x in items:
tot *= x
return tot
print(multiply_list([1,2,-8]))