Okay, so I've been stuck on this for a few days now. I'm trying to print the cost of my trip, and I'm almost positive I've done everything right. However, when I submit my code, it tells me that there's been an error and asks if I deleted the trip_cost function, (which I didn't do.)
According to what I know, the code should be printing the cost of the trip given the arguments that I defined at the end, but for whatever reason it seems to be getting confused. Can anyone help me please? I'm getting really frustrated with this.
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 def trip_cost(city, days, spending_money): return rental_car_cost(days)+hotel_cost(days)+plane_ride_cost(city)+spending_money print trip_cost("Los Angeles", 5, 600)