I have it right not taking it 5/7


#1

def hotelcost(nights):
return 140* nights

def planeridecost(city):
if city == "Charlotte":
return 183
elif city == "Tampa":
return 220
elif city == "Pittsburgh":
return 222
elif city == "Los Angeles":
return 475

def rentalcarcost(days):
cost = 40 * days
if days >= 7:
cost -= 50
elif days >= 3:
cost -= 20
return cost

def trip_cost(city, days):
return rentalcarcost(days) + hotelcost(days) + planeridecost(city)

#2

What error are you getting?


#3

check your variable names and your indentions