When I save & submit my code, python tells me "Oops, try again. Make sure to define a function named trip_cost." However, I did define that function. I looked at other posts in the forum and they seem to have the same code I do. What did I do wrong?
days=raw_input("How many days are you planning to be away?") nights=days city=raw_input("Where will you be going?") 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 "Enter one of the following locations: Charlotte, Tampa, Pittsburgh, or Los Angeles." def rental_car_cost(days): if days>=7: return (days*40)-50 elif days>=3: return (days*40)-20 elif days>0 and days<=2: return days*40 else: return 0 def trip_cost(days, city): return rental_car_cost(days) + hotel_cost(days) + plane_ride_cost(city)