Taking a vacation 6/7


Help me with the 6th one on taking a vacation


Here is what I got for you, remember that all we are doing is adding the argument spending_money to our trip_cost
so, this is what it should look like.

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


It says you can't add functions or functions with ints together


I tried that, and received the following error:

Traceback (most recent call last):
File "python", line 19, in
NameError: name 'spending_money' is not defined


Hi if you need help you should create a new topic with your code.. and next time don't post on an old post 21 days later ..