I am a new programmer learning python, but I am having trouble with a challenge I came up with recently. The challenge is to have the console recognize odd and even numbers through numeric variables (24-32 in this case). It all seems to be functioning but when I run it it immediately skips to the else statement. I am writing in 3.8.2. Thanks for your help!
x = int(input("Enter a number between 24-32: "))
even = (24, 26, 28, 30, 32)
odd = (25, 27, 29, 31)
if x is (even):
print("true")
pass
elif x is (odd):
print("false")
pass
else:
print("Please try again with a number between 24-32")
pass