I feel like I accidentally do something similar everytime I program anything. I am just bad at it, I don't know the short cuts or all the commands, but by God, it will work when I am done with it... maybe.
I don't know the right wat to do this, but I think there would be something like:
x = Number
If (x//2)is.integer() == "true":
Print("Even")
Else:
Print("odd")
Maybe? Idk. Probably a bunch of syntax issues and I haven't written anything in like a year.