Why is this error message showing?


I keep seeing this error message: 'Oops, try again. Make sure to define a function named trip_cost.'
Can you please tell me if there is anything wrong with this code.

    def trip_cost(city,days):
        return rental_car_cost(days) + hotel_cost(days) + plane_ride_cost(city)


Hi @digitalslayer45223,

Did you mistakenly indent your trip_cost function, making it part of another function? If so, Codecademy will not find it for its testing process.


thx. that was something i overlooked