I am assigned to make a currency converter and I am not sure why it isn't working. This is the program:
print(
"Welcome to Currency Converter"
)
USD = input(
"What amount of USD would you like to convert to another currency? Write only the number and click enter "
)
Currency = input(
"Which currency would you like to convert USD from? (Options: The Canadian Dollar(CAD), The Swiss Franc(CHF), The Japanese Yen(JPY), or The British Pound(GBP) PLEASE ENTER 3 LETTER CURRENCY CODE IN UPPERCASE"
)
if Currency == "CAD":
print(USD * 1.252910,
" Canadian Dollars")
if Currency == "CHF":
print(USD * 0.94122, " Swiss Franc")
if Currency == "JPY":
print(USD * 109.29, " Japanese Yen")
if Currency == "GBP":
print(USD * 0.71832,
"British Pounds")
This question has been resolved I had not defined "USD" as an int before the input