Dont know whats wrong


#1



Replace this line with your code. 

def plane_ride_cost (city):
   if city =="Charlotte":
       return 183
   elif city=="Tampa":
       return 220
   elif city=="Pittsburgh":
       return 222
   elif city=="Los Angeles":
       return 475
   else :
       return "0"def plane_ride_cost (city):
   if city =="Charlotte":
       return 183
   elif city=="Tampa":
       return 220
   elif city=="Pittsburgh":
       return 222
   elif city=="Los Angeles":
       return 475
   else :
       return "0"
def rental_car_cost(days):
    cost = days * 40
    if days >= 7 :
       cost -= 50
    elif days >= 3 :
       cost -= 20
    else :
       return cost


#2

Start by identifying how it behaves differently from what you want. (That's also something you'll have to explain to someone that you want help from.)

What's stopping you from figuring this out?


#3

hi, i dont know what could be wrong. it keeps giving this error


#4

That error message appears to be answering the question of what is wrong. Doesn't it?
I don't know how to answer your question any better than how that error message already does. Maybe you are wondering about something different from what you're asking? If so, you'll have to ask about that instead!

Explain what's stopping you from solving it. Right now you seem to have everything that you're asking for. Yes, that means you may need to ask other questions.


#5

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.