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