# 5. pull it together maximum recursion depth exceeded

#1

This is my code at the moment:
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
else:
return 475
def rental_car_cost(days):
rent = 40*days
if days >= 7:
rent -= 50
elif days >= 3:
rent -= 20
return rental_car_cost(days)
def trip_cost(city, days):
return rental_car_cost(days) + hotel_cost(days) + plane_ride_cost(city)

But it always returns the same message:
Oops, try again. rental_car_cost(1) raised an error: maximum recursion depth exceeded

Please can someone tell me what I'm doing wrong?
Thanks

5. Pull it together
#2

Hi this part

``````def rental_car_cost(days):
rent = 40*days
if days >= 7:
rent -= 50
elif days >= 3:
rent -= 20
return rental_car_cost(days)``````

Instead of `return rental_car_cost(days)` try to return `return rent`

#3

what happens when you fart in a bucket?

The bucket farts on you

#4

you are funny! hilarious!