Taking a vacation 6/7


#1

Help me with the 6th one on taking a vacation


#2

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


#3

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


#4

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


#5

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 ..