This is literally how I code stuff when I'm sleepy, then I come back a month later and realize how horrible the code was. Pretty sure I can still find stuff like this in my old discontinued projects that I haven't cleaned up
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.