Why is this error message showing?


#1

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)

#2

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.


#3

thx. that was something i overlooked


#4