yen = 0.0067
bsp = 1.35
usd = 0.65
ero = 0.85
if choice == "2":
Current_Currency = input("What currency do you want to exchange: Japenese Yen if so please type yen // British Sterling Pound please type bsp // US Dollers please Type usd // Euro please type ero.")
if Current_Currency == "yen":
amount = input("Type amount you wish to exchange")
Future_Currency = input("What currency do you want to exchange into: Japenese Yen if so please type yen // British Sterling Pound please type bsp // US Dollers please Type usd // Euro please type ero.")
New_Amount = Future_Currency * amount
이걸 작성해야하며 분명히 연구를 통해 float가 필요하지만이를 구현하는 방법에 대한 단서는 없습니다.은 'str'유형의 non-int로 곱할 수 없습니다.
이 파이썬 2입니까? 프롬프트에 무엇을 입력 했습니까? –
'Current_Currency'는 문자열이 아니며,'yen' 변수의 값이 될 것입니다. 그래서 문자열''yen ''과 비교해 보면 – JoshG79
이 아닐 수 있습니다. 미안합니다. – user2687255