Write a function to multiply all the numbers in a list


Topic: Write a function to multiply all the numbers in a list

Solution

def multiply_all(a_list):
    product = 1
    for i in a_list:
        product *= i
    return product



List all Python Programs