Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python program to multiplies all the items in a list using function

def list_number_multiplier(list_of_numbers):
    result = 1
    for item in list_of_numbers:
        result = result * item
    return result
x = [2,5,8]
print(list_number_multiplier(x))
 
PREVIOUS NEXT
Tagged: #python #program #multiplies #items #list #function
ADD COMMENT
Topic
Name
8+5 =