Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Math Translastions Ex: T<3, 6> on (5, 2) = (8, 8)
- def pick_corods():
- corods = input("Please input your corods: ")
- return corods
- def pick_translation():
- translation = input("Please input your translation: ")
- return translation
- def final_answer():
- corods = pick_corods()
- translation = pick_translation()
- (cro1, cro2) = corods.split()
- (tra1, tra2) = translation.split()
- cro1 = int(cro1)
- cro2 = int(cro2)
- tra1 = int(tra1)
- tra2 = int(tra2)
- final1 = cro1 + tra1
- final2 = cro2 + tra2
- print("Answer: ({}, {})".format(final1, final2))
- def play_again():
- while True:
- play_again = input("Need another problem solved: ")
- if(play_again.upper() == "Y"):
- print("Loading...")
- return True
- elif(play_again.upper() == "N"):
- print("See you soon!")
- return False
- else:
- print("Error: Please choose either 'Y' or 'N'")
- while True:
- final_answer()
- if not play_again():
- break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement