# Write a Python program to Multiply all numbers in the list (4 different ways) 
# Python program to multiply all values in the
# list using traversal


def multiplyList(myList) :
     
    # Multiply elements one by one
    result = 1
    for x in myList:
         result = result * x
    return result
     
# Driver code
list1 = [1, 2, 3]
list2 = [3, 2, 4]
print(multiplyList(list1))
print(multiplyList(list2))