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
Created at: 2020/03/25 23:25; Updated at: 2020/04/04 04:45