On step 5 of Taking a Vacation, I can't seem to get the correct answer.
I get the following error, or similar:
"Oops, try again. trip_cost('Tampa', 6) raised an error: global name 'plane_ride' is not defined"
It worked in the last step where I defined plane ride? I thought it would have declined me moving passed that step if I had failed there?
Replace this line with your code. 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 0 def rental_car_cost(days): rental = days * 40 if days >= 7: return rental - 50 elif days >= 3: return rental - 20 else: return rental def trip_cost(city, days): return hotel_cost(days) + plane_ride(city) + rental_car_cost(days)