Cant figure out what to do help?


#1

def hotel_cost(nights):
return hotel_cost (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):
if days >= 7:
discount = 50
cost = 40 * days - discount
return cost
elif days >= 3:
discount = 20
cost = 40 * days - discount
return cost
else:
cost = 40 * days
return cost

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

Oops, try again. hotel_cost(1) raised an error: maximum recursion depth exceeded


#2

can you copy your code in preformatted so that we can see indentation etc? Means we can copy code directly and troubleshoot for you