def is_even(k): if k & 2 != 10: print(False) else: print(True) print('Is "k" an even number?') is_even(int(input('Give a value for k: ')))