I am getting the following error message from line 30 of the code below. Please advise reason for error:
File “script.py”, line 30
if (premium_ground_shipping <= ground_shipping(weight)) and (premium_ground_shipping <= drone_shipping(weight)):
^
IndentationError: unindent does not match any outer indentation level
Code:
def ground_shipping(weight):
if weight > 10:
return (weight * 4.75) + 20
elif weight > 6:
return (weight * 4.00) + 20
elif weight > 2:
return (weight * 3.00) + 20
elif weight > 0:
return (weight * 1.50) + 20
else:
return ’ Please type weight in pounds’
premium_ground_shipping = 125
def drone_shipping(weight):
if weight > 10:
return (weight * 14.25)
elif weight > 6:
return (weight * 12.00)
elif weight > 2:
return (weight * 9.00)
elif weight > 0:
return (weight * 4.50)
else:
return ’ Please type weight in pounds’
def cheapest_shipping_method(weight):
if (ground_shipping(weight) <= premium_ground_shipping) and (ground_shipping(weight) <= drone_shipping(weight)):
return ground_shipping(weight)
if (premium_ground_shipping <= ground_shipping(weight)) and (premium_ground_shipping <= drone_shipping(weight)):
return ground_shipping(premium_ground_shipping)
if (drone_shipping(weight) <= ground_shipping(weight)) and (drone_shipping(weight) <= premium_ground_shipping):
return drone_shipping(weight)