while True:
    ans = input('Enter a number : ')
    if ans.isalpha():
        if ans == 'q':
            break
    elif ans.isnumeric():
        if ans == 1 or ans == 0:
            print('NOT even NOR odd number')
        elif ans % 2 == 0:
            print('EVEN number')
        else:
            print('ODD number')
and goes error like this:
Traceback (most recent call last):
  File "C:/Users/Me.Qa/Desktop/app0001.py", line 9, in <module>
    elif ans % 2 == 0:
TypeError: not all arguments converted during string formatting
 
     
     
    