I have seen the if x%2==1 and x&2 but I don't understand how that works
I don't understand the x%2==1 and x&2 means in the if statement
x=int(input("Write your number to define if either is even or odd"))
if x%2==1:
print('odd')
else:
print('even')
This work well but I don't understand how they define numbers