#1

I dont know what to do here, but heres my code so you can help

``````    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):
return cost - 50
elif(days >= 3):
return cost - 20
else:
return cost

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

#2

It may help a little to know you have a 1 at the end of your return for trip cost.

Also you are returning a value when the test wants it printed.

Simply get rid of the 1 and then change your return to print.

From

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

To

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

#3

It only takes 2 arguments, plz help

#4

Check my code

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

print trip_cost(city,days,spending_money)``````

you added a 1 in the last word spending_money1

#5

got it, thanks for the support though

#6

Check out my code - when you print the trip_cost, you gotta define the city, days, and spending money for it to run properly. Hope this helps!

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

print trip_cost("Los Angeles",5,600)