Pull it together


#1



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.


#2

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

def  hotel_cost(nights):
    #your code

hint**

You probably forgot to write it.


#3

I got this after I did what you said

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


#4

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


#5

thank you bro you rock


#7

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