Okay, I don't think I understand definitions, really. How does this work? With this
def travel_cost function, can't I just call hotel_cost, plane_cost and rental_cost? I don't understand. Please help!
def hotel_cost(nights): return 140 * nights def plane_ride_cost (city): if city == "Charlotte": return 183 elif city == "Tampa": return 220 elif city == "Pittsburgh": return 222 elif city == "Los Angeles": return 475 else: return "I'm sorry, that city is not in our database. Please choose from the following: Charlotte, Tampa, Pittsbugh or Los Angeles. Thank you" def rental_car_cost(days): if days >= 7: return days * 40 - 50 elif not days >= 7 and days >= 3: return days * 40 - 20 else: return days * 40 def trip_cost(city, days): return hotel_cost + plane_ride_cost + rental_car_cost