Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. def main ():
  2. numOne, numTwo = getnumbers()
  3. large_small(numOne,numTwo)
  4. if large_small() == optionA:
  5. optionB = print("The larger number is ", numOne, "and the smaller number is",numTwo)
  6. else:
  7. optionB = print("The larger number is ", numTwo, "and the smaller number is",numOne)
  8.  
  9.  
  10. def get_numbers():
  11. numOne = int(input("Please give a nummber: "))
  12. numTwo = int(input("Please give another number: "))
  13. return numOne, numTwo
  14.  
  15.  
  16. def large_small(numOne, numTwo):
  17. if numOne > numTwo:
  18. return optionA
  19. else:
  20.  
  21. return optionB
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement