Practice makes perfect: Product
This error message says that input 1,2 returned 1 instead of two.
total == 1 * numbers
I did this instead: total *= numbers 1
it works, but I don't understand why this works and my code didnt can someone explain?
def product(numbers): total = 1 for i in numbers: total == i * total return total