link: https://www.codecademy.com/courses/learn-python-3/projects/python-sals-shipping
Code start:
weight = “8.4”
print (“Ground Shipping.”)
if weight <= “2”:
cost_ground = weight * 1.5 + 20
elif weight <= “6”:
cost_ground = weight * 3.00 + 20
elif weight <= “10”:
cost_ground = weight * 4.00 + 20
else:
cost_ground = weight * (4.75 + 20)
print (“Cost of ground shipping:”, cost_ground)
Code Finish.
it’s giving me error after “else:” line and saying in
cost_ground = weight * (4.75 + 20)
TypeError: can’t multiply sequence by non-int of type ‘float’. How do you solve it?
Thanks.