Python program to find the multiplication of all the element of the list.

 Code:-

print(“Enter element of the list”)
mylist=list(map(int,input().split()))
mul=1
for i in mylist:
mul=mul*i
print(“Multiplication of all the element is “,mul)

Output:-

Enter element of the list
12 3 4 5 67 8
Multiplication of all the element is 385920



Leave a Reply

Your email address will not be published.