Super new to coding and need some advice

https://www.codecademy.com/courses/learn-python-3/projects/sals-shipping
Can any one tell me why i keep getting a “float object is not callable” on this code.

def drone(weight):
cost = weight * 4.50
return cost

def ground(weight):
cost = weight * 4.00 + 20.00
return cost

premium = 125.00

… print(“Premium is your cheapest option @ $” + str(premium))

print(best_method(4.8))
print(best_method(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 @tkkode, welcome to the forums! Could you please post the full code? To post correctly formatted code, press this button:


and put the code in between the back ticks:Screen Shot 2020-05-02 at 14.06.13