Write a Python program to multiply all the items in a list
def sum_all(lst):
mul = 1
for i in lst:
mul *= i
return mul
list1 = [1, 2, 3, 5, 8]
print(sum_all(list1))
About Author
I am a Web Developer, Love to write code and explain in brief. I Worked on several projects and completed in no time.
View all posts by Sunil Shaw