I don't know what i'm doing wrong 5:7


#1

def hotel_cost(nights):
return 140 * nights
def plane_ride_cost(city):
if city == "Charlotte":
return 183
if city == "Tampa":
return 220
if city == "Pittsburgh":
return 222
if city == "Los Angeles":
return 475
else:
return "City not found"
def rental_car_cost(days):
rent_car = days * 40
if days >= 7:
rent_car -= 50
elif days >= 3:
rent_car -= 20
return rent_car
def trip_cost(city,days):
return rental_car_cost(days) + hotel_cost(days) + plane_ride_cost(city)


#2

Hi what error do you get ?


#3

I've run your code and it works fine :slightly_smiling:
Perhaps you have an indentation problem that no one can point out because of the way you have presented your code or maybe you just need to reload the page. Double check to see if your indentations are okay.
Hope this helps :slightly_smiling: