Created
May 14, 2016 17:54
-
-
Save MuddyBootsCode/3e1c9adadec046dc588a6378192fc981 to your computer and use it in GitHub Desktop.
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
def OddEven(number): | |
if number % 2 != 0: | |
print ('Your number is odd.\n') | |
elif number % 4 ==0: | |
print ('Your number is even and a multiple of four.\n') | |
else: | |
print ('Your number is even.\n') | |
number = int(input('I can tell you if a number is even or odd.\nPlease give me a number.\n')) | |
OddEven(number) | |
givenNumber = int(input('Now if you want to give me a number we can divide it by another and see if the quotient is even or odd.\n')) | |
check = int(input('What number would you like to divide ' + str(int(givenNumber)) + ' by?\n')) | |
number = givenNumber/check | |
print ('Your quotient is\n' + str(int(number))) | |
OddEven(number) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment