Valid = False while not Valid : try: n = int(input("Enter a Number:")) while n % 2 == 0: print("Bye Bye") Valid = True except ValueError: print("Inavalid Input!")
To embed this project on your website, copy the following code and paste it into your website's HTML: