Error - Have you defined function


#1

Hi,

I keep getting the error: Did you create a function called plane_ride_cost?; I've been staring at this for ages now and can't figure out what's wrong:

def hotel_cost(nights):
    return 140 * nights;

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

Thanks for the help!


#2

Look at this part should be easy to figure out.


#3

Hi,

Thanks for the reply; I'm assuming you mean the ; ? I've taken it out and it changes nothing, getting the same error.

Now fixed! I retyped the entire code again and it seems to have done the trick.