Python- Sal's Shipping rounding off shipping cost

I’m having issues with Sal’s Shipping where I’ve entered the price per weight and my weight and it rounds off the total cost.
Question 7:
A package that weighs 1.5 pounds should cost $6.75 to ship by drone:

1.5 lb×$4.50+$0.00=$6.75

I get $6.0
Why is it rounding off?
My code:
weight = 1.5
if weight <= 2:
cost_ground = weight + 4.50

The weight + 4.50 should be weight * 4.50

Yes that worked. Thank you. Math was never my strongest subject.

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.