I need help on Taking a vacation 6/7


#1

I don't know what is wrong.Here is my code:

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
def rental_car_cost(days):
    cost = 40 * days
    if days >= 7:
        cost -= 50
    elif days >= 3:
        cost -= 20
    return cost
print rental_car_cost

def trip_cost(city, days):
        return plane_ride_cost(city) + rental_car_cost(days) + hotel_cost(days)
        
trip_cost(days, city, spending_money):
return  rental_car_cost(days)+plane_ride_cost(city)+ hotel_cost(days) + spending_money

I would be grateful if you help fast.


#2

trip_cost(days, city, spending_money):

The above line should just be,

trip_cost("Charlotte",9,500)

This line,

return  rental_car_cost(days)+plane_ride_cost(city)+ hotel_cost(days) + spending_money

Does not come into play until the next lesson.


#3

Thank you!
Your so fast