0

Return Error !whats wrong..?

The returning function inside a function is giving 'none' . What is wrong..? https://code.sololearn.com/cOw2xSVBDX9y/?ref=app

20th Aug 2020, 3:54 PM
Mohammad Ansah Kuriyodath
Mohammad Ansah Kuriyodath - avatar
1 Réponse
+ 2
return is in else. Take it out... max=15; def multiplier(num): numb=str(num) global max numl=len(numb) preffered_odd=23 if numl<max: num*=preffered_odd multiplier(num) elif numl>max: num//=10 multiplier(num) return num seed=multiplier(991) print(seed)
20th Aug 2020, 3:58 PM
Jayakrishna 🇮🇳