I am able to multiply all the numbers in a list and return the sum, but if the list contains a 0 it returns 0, as the hint is warning you about, so i wanna try and fix that before moving on. I've tried ".remove()" but it doesnt seem to be executing. So can someone point out where my thinking fails? Would be much appreciated!
Thanks otherwise for a awesome community
numbers = [0,1,2,3,4,5] def product(numbers): n = 1 for x in numbers: n *= x if x == 0: numbers.remove('0') return n print product(numbers)