入力によって販売金額を取得し、定義された消費税(0.08)を乗算してから、合計金額(販売税と販売金額)を出力するように入力しています。
このエラーに遭遇しました。誰が何が間違っているのか知っているか、何か提案がありますか?
salesAmount = raw_input (["Insert sale amount here \n"])
['Insert sale amount here \n']20.99
>>> salesTax = 0.08
>>> totalAmount = salesAmount * salesTax
Traceback (most recent call last):
File "<pyshell#57>", line 1, in <module>
totalAmount = salesAmount * salesTax
TypeError: can't multiply sequence by non-int of type 'float'