これは私のコードです。私は初心者を執行しています。私はプログラムを実行すると浮動小数点エラー文字列
私は値を置くことができますが、私はループの外に出たときに、次のエラーメッセージが表示されます。
a + = float (input ("Enter the product cost"))
とValueErrorを:float型に文字列を変換できませんでした:
ことができます誰か助けて?ここで
それが行く:
e = 0.25
f = 0.18
a = 0.0
while True:
a += float(input("Enter the product cost: "))
if a == "":
break
b = a*e
c = a*f
d = a+b+c
print ("tax: " + b)
print ("tips: " + c)
print ("Total: " + d)
あなたは 'a_input =フロート(入力( "製品コストを入力する:"))を行うことができます。複数の行に
スプリットそれは' –