defhotel_cost(nights):return140 * nights
defplane_ride_cost(city):if city == "Charlotte":
return183if city == "Tampa":
return220if city == "Pittsburgh":
return222if city == "Los Angeles":
return475defrental_car_cost(days):
cost = 40 * days
if days >= 7:
cost -=50elif days <7and days >= 3:
cost -=20return cost
deftrip_cost(city,days):return rental_car_cost(days)+hotel_cost(days)+plane_ride_cost(city)