Help

Quentin Bock qberz2005 at gmail.com
Tue Nov 3 20:32:53 EST 2020


So, I'm newer to Python and I'm messing around with math functions and
multiplication, etc. here is my line of code:
def multiply(numbers):
      total = 1
             for x in numbers:
             total *= x
             return total
print(multiply((8, 2, 3, -1, 7)))

When I run this, my answer is 8 but it should be 336 can some help ._.


More information about the Python-list mailing list