13. Product



it says I don't have a function called product defined. when clearly i do.

Oops, try again. Did you create a function called product? Your code threw a "global name 'product' is not defined" error.

def product(numbers):
    result = 1
    for i in numbers
        result *= int(i)
    return result


for i in numbers // missing colon


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.