Pull it together


def trip_cost (city,days):
return rental_car_cost(days) + hotel_cost(days) + plane_ride_cost(city)
Oops, try again. Make sure to define a function named hotel_cost.

please help

Replace this line with your code.


You have to add a function (already instructed in first chapter of this section)

def  hotel_cost(nights):
    #your code


You probably forgot to write it.


I got this after I did what you said

Oops, try again. hotel_cost(1) returned None instead of the correct value 140


inside the body of function,did you return nights multiplied by 140 ? (as instructed in instruction)


thank you bro you rock


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.