while True: val = int(input('Enter a even number to exit the loop...')) if val % 2 == 0: break print('The number you entered is not even number')