7. plan your trip


Hello everyone,
I dunno why my code does not work while I have checked it several times, please help me to find the problem.

File "python", line 28
print trip_cost("Los Angeles", 5, 600)
IndentationError: unindent does not match any outer indentation level

Replace this line with your code. 
def hotel_cost(nights):
    #$140 per night
    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):
    #1day* $40
    cost = days * 40
    if days >= 7:
       cost -= 50
       return cost
    elif days >= 3:
        cost -= 20
        return cost
        return cost
def trip_cost(city, days, spending_money):
        return plane_ride_cost(city) + rental_car_cost(days) + hotel_cost(days) + spending_money
 print trip_cost("Los Angeles", 5, 600)


you one have a space at the beginning of this line, it should be no spaces at all (no indent)


Awwww Thanks a million! It worked. I was searching word by word to find the problem! I did not notice about that space! Thanks again dear stetim94



no problem, good luck!