plane_ride_cost is defined, but need seen?


#1

Code:

def hotel_cost(nights):
    return 140 * nights

def plane_ride_cost(city):
    if fruit == "Charlotte":
        return 183
    elif fruit == "Tampa":
        return 220
    elif fruit == "Pittsburgh":
        return 222
    elif fruit == "Angeles":
        return 475

Returned error: Oops, try again. Did you create a function called plane_ride_cost?

Screen:


#2

Never mind, I found the error already. I didn't replace the fruit variable with city