• Digits multiplication

Question related to mission Digits Multiplication

 

Can anyone tell me why this doesnt work?

def checkio(number):
    result = 1
    if number > 0 and number < 10**6:
        for x in str(number):
            n = int(x)
            if n != '0':
                result *= n*result
            else:
                continue
        return result
    else: 
        return 1