Q:

Write a Python function to multiply all the numbers in a list

0

Write a Python function to multiply all the numbers in a list. 

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

def multiply(numbers):  
    total = 1
    for x in numbers:
        total *= x  
    return total  
print(multiply((8, 2, 3, -1, 7)))

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now