Jo373

Currency convertor

Aug 24th, 2020
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.45 KB | None | 0 0
  1. money = int(input("Enter the amount of money IN GDP you wish to convert :"))
  2.  
  3. USD = 1.25
  4. EUR = 1.17
  5. RUP = 83.87
  6. TNG = 419.83
  7.  
  8. currency = input("Which currency would you like to convert the money into?")
  9.  
  10. if currency == "USD":
  11.        print(round(money * USD, 3))
  12. elif currency == "EUR":
  13.        print(round(money * EUR, 3))
  14. elif currency == "RUP":
  15.        print(round(money * RUP, 3))
  16. elif currency == "TNG":
  17.        print(round(money * TNG, 3))
Advertisement
Add Comment
Please, Sign In to add comment