Error in Sal's Shipment assignment

I was following the video of this project and typed the code exactly like was suggested there, but I get indentation / syntax error - always on the same line, where ‘else’ is:
File “”, line 14
IndentationError: expected an indented block

I have changed indentation multiple times, but the error persists by whatever option I choose for that line, just then giving me a syntax error on the same line if I change indentation for 2 spaces

Excercise link:

def shipping_cost_ground(weight):
if weight <= 2:
price_per_pound = 1.5

elif weight <= 6:
price_per_pound = 3

elif weight <= 10:
price_per_pound = 4

elif weight > 10:
price_per_pound = 4.75

return 20 + (price_per_pound * weight)


Hi, welcome to the Forums.

Can you please format your code?

Also, double check your 3rd elif statement.

1 Like

Thank you, I have corrected and solved the issue. Now everything works,