Created
March 28, 2017 19:58
-
-
Save akshayxarora/595dd993a4eca9f0b5404601b06aa4b1 to your computer and use it in GitHub Desktop.
odd or even
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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