write a python program to multiplies all the items in a list. code example
Example: write a python program to multiplies all the items in a list.
l = [1,2,3,4,5]
tot = 1
for x in l:
tot *= x
print(tot)
>>> 120
l = [1,2,3,4,5]
tot = 1
for x in l:
tot *= x
print(tot)
>>> 120