Got stuck at Sal's Shipping

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.

You seem have cost_ground as a string instead of a number (meaning a float or integer)
"2" is a string, but 2 is an integer

Basically from the start of your program, you are telling Python to assign weight to the String 8.4. Then you are doing statements with strings, if the string A is the same or less than string B do this. For the purpose of your exercise just remove the quotes and simply write the number.

While you represent integers as string literals it is good to use straight declarations if you are using only integers.

thank you! I correct the weight and took off the string!