Pull it together


#1



I need help I can't tell what is wrong with my code.

def hotel_cost(nights):
    return 140*nights

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

def rental_car_cost(days):
    rent = days* 40
    if days >= 7:
        rent -= 50
    elif days >= 3:
        rent -= 20
    return rent
    
def trip_cost(city,days):
    return rental_car cost(days) + hotel_cost(days) + plane_ride_cost(city)

It keeps giving me error for syntax on my last function.

File "python", line 23
    return rental_car cost(days) + hotel_cost(days) + plane_ride_cost(city)
                         ^
SyntaxError: invalid syntax


#2

a underscore is missing between rental_car and cost


#3

thanks fresh eyes always seem to help catch those tiny mistakes


#4