• Absolutely baffled

Question related to mission Digits Multiplication

 

I've been trying to solve this one for absolutely ages and suspect I'm doing something real stupid but have no idea what it is. I've followed the hints and tried to put it all together so it has the conversion to a string, iterates through the string getting each digit as an int, and then collects the product of the digits in an answer. But when run, there's no output on the console, even though I've returned the answer.

answer = 1
for i in str(number):
    n = int(i)
    if n == 0:
        continue
    else:
        answer *= n
    return answer