3. Getting There: My function works, but it's not passing


#1

This is my code - it looks right, but the error message is "Oops, try again. Did you create a function called plane_ride_cost?" I don't know what to do.

    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


#2

HI try your code with that indent...

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