0
With the programme run,finally it will become 0,why if it is 23,it will output false?
4 Respostas
0
def is_even(x):
if x == 0:
return True
else:
return is_odd(x-1)
def is_odd(x):
return not is_even(x)
print(is_odd(17))
print(is_even(23))
0
Thank you very much