I would like to give some feedback about ...
From: http://www.checkio.org/mission/digits-multiplication/solve/
I am trying to run a recursive function, is it true that this is not possible?
Following code
def checkio(number):
'''
Returns the product of the digits excluding zeros.
'''
if number/10==0:
return number
else:
return (number%10)*checkio(number/10) if number%10 != 0 else checkio(number/10)
HTTP_USER_AGENT:
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.155 Safari/537.36
Created at: 2015/08/17 03:09; Updated at: 2015/08/17 03:33