About sal's shipping, please help me out in this code

print("Weight should be in Pounds")

premium_ground_shipping = 0

def cost_of_ground(weight):

 cost = weight*4+20

 return cost

print(cost_of_ground(41.5))

print(cost_of_ground(4.8))

def drone_shipping(weight):

  cost= weight*4.50+0

  return cost

print(drone_shipping(41.5))

print(drone_shipping(4.8))

def chepest_shipment(weight):

  if cost_of_ground(weight) > drone_shipping(weight):

    return "drone", drone_shipping(weight)

  else :

    return "ground", cost_of_ground(weight)

print("Cheepest shipment is",chepest_shipment(4.8))

print("Cheepest shipment is",chepest_shipment(41.5))

You must select a tag to post in this category. Please find the tag relating to the section of the course you are on E.g. loops, learn-compatibility

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:

Hello @utpal123, welcome to the forums! Do you have a specific question about this exercise?

yes i was doing everything right but its not running as was in the exercise.
so , please let me know where is my mistake.
i want to correct myself
thankyou

Could you provide a link to the exercise, and any error messages that are appearing? Also, how is it not running like in the exercise?