Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- currency_from = input(
- "What currency would you like to convert from? "
- "Type the name of currency in the next line (uah, usd, eur)\n>. "
- ).lower()
- currency_to = input(
- "What currency would you like to convert to? "
- "Type the name of the currency ({0})\n > ")
- if currency_from == "uah".lower():
- print("you have chosen uah!")
- uah = float(input("Input your amount in Hryvnas.:"))
- usd = uah * 0.04
- eur = uah * 0.08
- print(uah, "uah is equal to:")
- if currency_to == "usd":
- print("usd", usd)
- elif currency_to == "eur":
- print("eur", eur)
- elif currency_from == "usd":
- print("YOU have CHOSEN USD!")
- usd = float(input("Input your amount in Dollars"))
- uah = usd * 113.76
- eur = usd * 0.92
- print(usd, "usd is equal to:")
- if currency_to == "uah":
- print("uah", uah)
- elif currency_to == "eur":
- print("eur", eur)
- elif currency_from == "eur":
- eur = float(input("Input your amount in Euros: "))
- usd = eur * 1.09
- uah = eur * 324
- ##currency_to = input("Do you want that in uah, usd?")
- print(eur, "EUR is equal to:")
- if currency_to == "uah":
- print("uah", uah)
- elif currency_to == "usd":
- print("usd", usd)urrency_from = input(
- "What currency would you like to convert from? "
- "Type the name of currency in the next line (uah, usd, eur)\n>. "
- ).lower()
- currency_to = input(
- "What currency would you like to convert to? "
- "Type the name of the currency ({0})\n > ")
- if currency_from == "uah".lower():
- print("you have chosen uah!")
- uah = float(input("Input your amount in Hryvnas.:"))
- usd = uah * 0.04
- eur = uah * 0.08
- print(uah, "uah is equal to:")
- if currency_to == "usd":
- print("usd", usd)
- elif currency_to == "eur":
- print("eur", eur)
- elif currency_from == "usd":
- print("YOU have CHOSEN USD!")
- usd = float(input("Input your amount in Dollars"))
- uah = usd * 113.76
- eur = usd * 0.92
- print(usd, "usd is equal to:")
- if currency_to == "uah":
- print("uah", uah)
- elif currency_to == "eur":
- print("eur", eur)
- elif currency_from == "eur":
- eur = float(input("Input your amount in Euros: "))
- usd = eur * 1.09
- uah = eur * 324
- ##currency_to = input("Do you want that in uah, usd?")
- print(eur, "EUR is equal to:")
- if currency_to == "uah":
- print("uah", uah)
- elif currency_to == "usd":
- print("usd", usd)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement