-5
currencies = {'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.")
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 = currencies[Future_Currency]/currencies[Current_Currency] * amount
如何解决这个问题?得到一个“不能乘以类型为'float'的非整数序列”错误
请格式化您的代码。当这样呈现时,没有人会花时间阅读您的问题。 – Henrik
SO不是关于“我能否要求我得到一个答案,我所要做的就是复制并粘贴它”,但解决问题。 – lejlot
是啊好吧,你尝试和度过你唯一的假期浪费时间,因为你无法理解和修复一行代码,所以我的假期是swanny – user2687255