Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try:
- print(" Euro == 1 \n Pound == 2 \n Dollar == 3")
- user_amount = int(input("What's the currency you want sire? : "))
- user_input = int(input("How much of that currency you want to convert? : "))
- print(" Euro == 1 \n Pound == 2 \n Dollar == 3")
- convert_input = int(input("Whats the currency you want to convert it to, sire? : "))
- except ValueError:
- exit("RIP you didn't enter a number, soz mate")
- de = ("Your total number is: " + str(user_input / 1.11))
- pd = ("Your total number is: " + str(user_input * 1.21))
- dp = ("Your total number is: " + str(user_input / 1.21))
- pe = ("Your total number is: " + str(user_input * 1.09))
- ep = ("Your total number is: " + str(user_input / 1.09))
- ed = ("Your total number is: " + str(user_input * 1.11))
- ee = ("Your total number is: " + str(user_input * 1))
- dd = ("Your total number is: " + str(user_input * 1))
- pp = ("Your total number is: " + str(user_input * 1))
- if user_amount == 1 and convert_input == 1:
- print(ee)
- elif user_amount == 1 and convert_input == 2:
- print(ep)
- elif user_amount == 1 and convert_input == 3:
- print(ed)
- elif user_amount == 2 and convert_input == 1:
- print(pe)
- elif user_amount == 2 and convert_input == 2:
- print(pp)
- if user_amount == 2 and convert_input == 3:
- print(pd)
- if user_amount == 3 and convert_input == 1:
- print(de)
- if user_amount == 3 and convert_input == 2:
- print(dp)
- if user_amount == 3 and convert_input == 3:
- print(dd)
- exit("Program finished operating")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement