Python- Getting There . can someone help me with this


#1
def plane_ride_cost(city):
     if city == "Charlotte":
      return 183
     elif city == "Tampa":
      return 220
     elif city == "Pittsburgh":
      return 222
     elif city == "Los Angeles":

#2

You are yet to return the value for the last elif as with others.

    elif city == "Los Angeles":
        return 475

I hope this helps! :wink:


#3

I just did. Its saying I should create a function called plane_ride_cost.


#4

Please, ensure your code is well formatted as below, because I think the indentation isn't completely okay.

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

If this doesn't resolve, copy and paste well formatted full code, and accompanying error printed.

Thank you! :smile:


#7