#!/bin/env/python
#coding: utf-8 
#https://py.checkio.org/mission/digits-multiplication/solve/


# You are given a positive integer. Your function should calculate the product of the digits excluding any zeroes.

#For example: The number given is 123405. The result will be 1*2*3*4*5=120 (don't forget to exclude zeroes).

#Input: A positive integer.

#Output: The product of the digits as an integer.

#Precondition: 0 < number < 106 


def checkio(number):
    sum = 1
    for i in str(number):
        if int(i) != 0:
            sum *= int(i)
    return sum

#These "asserts" using only for self-checking and not necessary for auto-testing
if __name__ == '__main__':
    checkio(123405)
    checkio(999)
    checkio(1000)
    checkio(1111)

    # assert checkio(123405) == 120
    # assert checkio(999) == 729
    # assert checkio(1000) == 1
    # assert checkio(1111) == 1
9a7bf8cde7d29034e624e8769b857082e03488ea
<mask token>

def checkio(number):
    sum = 1
    for i in str(number):
        if int(i) != 0:
            sum *= int(i)
    return sum


<mask token>

def checkio(number):
    sum = 1
    for i in str(number):
        if int(i) != 0:
            sum *= int(i)
    return sum


if __name__ == '__main__':
    checkio(123405)
    checkio(999)
    checkio(1000)
    checkio(1111)

#!/bin/env/python
#coding: utf-8 
#https://py.checkio.org/mission/digits-multiplication/solve/


# You are given a positive integer. Your function should calculate the product of the digits excluding any zeroes.

#For example: The number given is 123405. The result will be 1*2*3*4*5=120 (don't forget to exclude zeroes).

#Input: A positive integer.

#Output: The product of the digits as an integer.

#Precondition: 0 < number < 106 


def checkio(number):
    sum = 1
    for i in str(number):
        if int(i) != 0:
            sum *= int(i)
    return sum

#These "asserts" using only for self-checking and not necessary for auto-testing
if __name__ == '__main__':
    checkio(123405)
    checkio(999)
    checkio(1000)
    checkio(1111)

    # assert checkio(123405) == 120
    # assert checkio(999) == 729
    # assert checkio(1000) == 1
    # assert checkio(1111) == 1