Python program to multiply all the numbers in given list


Topic: Python program to multiply all the numbers in given list

Solution

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



List all Python Programs