0

How does this code work? (Python)

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))

4th Jun 2020, 3:59 PM
3.14
3.14 - avatar
1 Respuesta