Taking a vacation


is anything wrong in my code ? cuz i always get errpr message : Oops, try again. Did you create a function called plane_ride_cost?

def hotel_cost(nights):
    # if the hotel cost is 140$/night
    return 140 * nights

def plane_ride_cost(nights):
    if city == "Charllotte":
        return 183
    elif city == "Tampa":
        return 220
    elif cit == "Pittsburgh":
        return 222
    elif city == "Los Angeles":
        return 475


take a look at your instruction no.1 again.


elif cit == "Pittsburgh":

have typo


... and instruction no. 2, for spellings of city names.


and now i have a new error message Oops, try again. It looks like plane_ride_cost does not return 183 when the city is Charlotte.
cant figure that


Check this carefully ...

if city == "Charllotte":


thanks bro now its worked


Have a great trip. :slight_smile: