The_Ideas
print("The purpose of program: (Converting dollers to EUR, Canada, UK(GBP), China currency.)") print("") while True: print("Please choose from the menu.") print("============================") print("1: Convert between USD and EUR") print("2: Convert between USD and Canada") print("3: Convert between USD and UK (GBP)") print("4: Convert between USD and China") print("5: Quit.") print("============================") money = int(input("Enter your choice: ")) # input money if money <=0 or money >= 6: print(money, 'is inviled choice.') print("") else: #output money if money == 1: dollar = int(input("Enter the amount in dollar: ")) EUR = dollar * 0.91 print(" ","$",dollar, " is ", format(EUR,'.2f'), "euro",sep="") elif money == 2: dollar = int(input("Enter the amount in dollar: ")) Canada = dollar * 1.37 print(" ","$",dollar, " is ", format(Canada,'.2f'), "cad",sep="") elif money == 3: dollar = int(input("Enter the amount in dollar: ")) UK = dollar * 0.72 print(" ","$",dollar, " is ", format(UK,'.2f'), "pound",sep="") elif money == 4: dollar = int(input("Enter the amount in dollar: ")) China = dollar * 6.53 print(" ","$",dollar, " is ", format(China,'.2f'), "yuan",sep="") elif money == 5: print("") print("Thank you for using my program.") break quit() print("")