n = input("Enter your number: ")
if n%2 != 0:
    print("Weird")
elif n%2 == 0:
    if n>1 and n<6:
        print("Not weird")
    elif n>=6 and n<=20:
        print("Weird")
    elif n>20:
        print("Not Weird")
While running this code I got the error message. I could not find the reason.
 
     
     
    