Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def main ():
- numOne, numTwo = getnumbers()
- large_small(numOne,numTwo)
- if large_small() == optionA:
- optionB = print("The larger number is ", numOne, "and the smaller number is",numTwo)
- else:
- optionB = print("The larger number is ", numTwo, "and the smaller number is",numOne)
- def get_numbers():
- numOne = int(input("Please give a nummber: "))
- numTwo = int(input("Please give another number: "))
- return numOne, numTwo
- def large_small(numOne, numTwo):
- if numOne > numTwo:
- return optionA
- else:
- return optionB
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement