Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Digits Multiplication solution in Uncategorized category for Digits Multiplication by Aleksandra_Niewiadomska
def checkio(number: int) -> int:
result = 1
for x in str(number):
digit = int(x)
if digit:
result *= digit
return result
print("Example:")
print(checkio(123405))
# These "asserts" are used for self-checking
assert checkio(123405) == 120
assert checkio(999) == 729
assert checkio(1000) == 1
assert checkio(1111) == 1
print("The mission is done! Click 'Check Solution' to earn rewards!")
Feb. 1, 2023