送料を計算するプログラムをPythonで作成しようとしています。
ただし、プログラムを正常に動作する場所まで実行できません。
私の合計がどうであれ、同じ金額は、米国で 6 ドル、カナダで 8 ドルになります。私はそれを渡すことができないようです。
total = raw_input('What is the total amount for your online shopping?')
country = raw_input('Shipping within the US or Canada?')
if country == "US":
if total <= "50":
print "Shipping Costs $6.00"
elif total <= "100":
print "Shipping Costs $9.00"
elif total <= "150":
print "Shipping Costs $12.00"
else:
print "FREE"
if country == "Canada":
if total <= "50":
print "Shipping Costs $8.00"
elif total <= "100":
print "Shipping Costs $12.00"
elif total <= "150":
print "Shipping Costs $15.00"
else:
print "FREE"