Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
mul function solution in Clear category for Digits Multiplication by MrCookies
from functools import reduce # Valid in Python 2.6+, required in Python 3
import operator
mul = lambda a: reduce(operator.mul, a)
def checkio(number: int) -> int:
return mul(int(n) for n in str(number) if n != '0')
July 1, 2022