This is my code for the section and I'm having a difficult time determining what I'm doing wrong. Every single time it gives me a "maximum recursion depth exceeded". But when I see other examples that worked for users on this site, it seems to look identical.
# hotel costs #140/night. hotel_cost should return 140 nights
return 140 * nights
Define a fxn called plane_ride_cost; that takes a string, city.
if city == "Charlotte":
elif city == "Tampa":
elif city== "Pittsburgh":
elif city == "Los Angeles":
Define a fxn called rental_car_cost; takes an argument in days.
cost = 40 * days
if days >= 7:
cost -= 50
elif days >= 3:
cost -= 20
Define a fxn called trip_cost; takes 2 arguments: city and days.
def trip_cost(days, city):
return plane_ride_cost(city) + hotel_cost(days) + rental_car_cost(days)