Created
August 5, 2017 23:14
-
-
Save dhavalsavalia/7ca7e2b1004202bfa4c450891ce7286c to your computer and use it in GitHub Desktop.
practicepython-exercise-two | 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
# asking for a number | |
number = int(input("Enter a number: ")) | |
# checking with if | |
if number % 2 == 0: | |
print("Number {} is even!".format(number)) | |
else: | |
print("Number {} is odd!".format(number)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment