[FIXED]Taking a Vacation. 5. Pull it together


#1
def hotel_cost(nights):
# If the hotel costs $140/night...
    return 140 * nights
def plane_ride_cost(city):
# Statements below provide cost of plane ticket for 4 different cities
    if city == "Charlotte":
        return 183
    elif city == "Tampa":
        return 220
    elif city == "Pittsburgh":
        return 222
    elif city == "Los Angeles":
        return 475
def rental_car_cost(days):
# Statements below provide cost of rental car per day with 7 and 3-day discounts
    car_cost = 40 * days
    if days >= 7:
        car_cost -= 50
        return car_cost
    elif days >= 3:
        car_cost -= 20
        return car_cost
    elif days < 3:
        return car_cost
def trip_cost(ciy, days):
    return hotel_cost(days) + plane_ride_cost(city) + rental_car_cost(days)

What is wrong with the code?
Error message - Oops, try again. trip_cost('Charlotte', 7) raised an error: global name 'city' is not defined


#2

Caught my mistake as soon as I posted this. My argument says ciy not city. I'll leave this up for others to see.
Line 25 says

Should be