What is my mistake

When you ask a question, don’t forget to include a link to the exercise or project you’re dealing with!

If you want to have the best chances of getting a useful answer quickly, make sure you follow our guidelines about how to ask a good question. That way you’ll be helping everyone – helping people to answer your question and helping others who are stuck to find the question and answer! :slight_smile:

def ground_shipping(weight):
  if weight <= 2:
    price_per_pound = 1.50
  elif weight <= 6:
    price_per_pound = 3.00
  elif weight <= 10:
    price_per_pound = 4.00
  else:
    price_per_pound = 4.75
    
  return 20 + (price_per_pound * weight)
print(ground_shipping(8.4))
premium_ground_shipping = 125.00

  

  
  
def drone_shipping(weight):
  if weight <= 2:
    price_per_pound = 4.50
  elif weight <= 6:
    price_per_pound = 9.00
  elif weight <= 10:
    price_per_pound = 12.00
  else:
    price_per_pound = 14.25
  return price_per_pound * weight
    
  
  
  return 00.00 + (price_per_pound * weight)
print(drone_shipping(1.5))

def print_cheapest_shipping_method(weight):
  
  ground = ground_shipping(weight)
  premium = premium_ground_shipping
  drone = drone_shipping(weight)
  
  if ground < premium and ground < drone:
    method = "standard ground"
    cost = ground
  elif premium < ground and premium < drone:
    method = "premium ground"
    cost = premium 
  else:
    method = "drone"
    cost = drone
    
print(
   "The cheapest option  available is $%.2f with %s shipping."
     %(cost, method)
    )
print_cheapest_shipping_method(4.8)
print_cheapest_shipping_method(41.5)

this print statement:

print(
   "The cheapest option  available is $%.2f with %s shipping."
     %(cost, method)
    )

is outside the function, yet the variable you use are defined within the function and have a local scope. Shouldn’t this print statement be part of the function?

If you have any further questions, can you also provide exercise url? So i know which exercise you are at