Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save akshayxarora/595dd993a4eca9f0b5404601b06aa4b1 to your computer and use it in GitHub Desktop.
Save akshayxarora/595dd993a4eca9f0b5404601b06aa4b1 to your computer and use it in GitHub Desktop.
odd or even
num = int(raw_input("Enter a number"))
if num % 2 == 0
print "The number is even."
else:
print "The number is odd."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment