Introduction
Write a Python function to multiply all the numbers in a list. I have used python 3.7 compiler for debugging purpose.
def multiply(numbers): total = 1 for n in numbers: total *= n return total print(multiply((1, 2, 3, 5, 6)))
Write a Python function to multiply all the numbers in a list. I have used python 3.7 compiler for debugging purpose.
def multiply(numbers): total = 1 for n in numbers: total *= n return total print(multiply((1, 2, 3, 5, 6)))