Skip to content

Instantly share code, notes, and snippets.

@MuddyBootsCode
Created May 14, 2016 17:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MuddyBootsCode/3e1c9adadec046dc588a6378192fc981 to your computer and use it in GitHub Desktop.
Save MuddyBootsCode/3e1c9adadec046dc588a6378192fc981 to your computer and use it in GitHub Desktop.
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