0
Return Error !whats wrong..?
The returning function inside a function is giving 'none' . What is wrong..? https://code.sololearn.com/cOw2xSVBDX9y/?ref=app
1 Answer
+ 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)