You are viewing a single comment's thread. Return to all comments →
def _check_even(n): if n%2 != 0: return False else: return True if not _check_even(n): print('Weird') elif _check_even(n) and n in range(1, 6): print('Not Weird') elif _check_even(n) and n > 20: print('Not Weird') elif _check_even(n) and n in range(5, 21): print('Weird')
Seems like cookies are disabled on this browser, please enable them to open this website
Python If-Else
You are viewing a single comment's thread. Return to all comments →