Ask coding questions

← Back to all posts
How do I make it so that python will be able to tell if a number is even or odd?
D3LT4-M43LSTR0M

I am working on a project, and it needs to be able to discern odds from evens. I do not remember how to do that, and I would greatly appreciate it if someone could tell me how to do it.

Voters
D3LT4-M43LSTR0M
Comments
hotnewtop
ruiwenge2

heres a way you can do it:

CosmicBear

Write some code to see if the result of the number being divided by 2 doesn't have a decimal.