Lesson 6 Hey you never know ''The error says your code looks little bit off and the console is showing indentation error.Pl help to complete the exercise


Below is my code.

def hotel_cost(nights):
return 140*nights 
def plane_ride_cost (city):
if city== "Charlotte":
return 183
if city=="Tampa":
return 220
if city== "Pittsburgh":
return 222
if city=="Los Angeles": 
return 475
def rental_car_cost(days):
rent = 40 * days
if days >= 7:
    return rent - 50
elif days >= 3:
    return rent - 20
return rent
    def trip_cost(city, days, spending_money):
return rental_car_cost(days) + hotel_cost(days) + plane_ride_cost(city) + spending_money()


your code's indent have problem, use TAB or 4 space (one of them) to write codes.


if city == "Charlotte":
    return 183


Make sure all statements like def, if, while, for etc are followed by tabs in the next line. Tabs in python define a block instead of the curly braces that languages like javascript, c, c++, java etc use. Try correcting indentation and let us know how it goes...