Plan your trip: unindent does not match any outer indentation level


#1



https://www.codecademy.com/en/courses/python-beginner-P5YtY/1/6?curriculum_id=4f89dab3d788890003000096

I believe I have my code set up properly, but when I submit it the only error that continues to pop up is that the "unindent does not match any outer indentation level" for "if days >= 7"
My full rental_care_cost is below:


def rental_car_cost(days):
        cost = days * 40
    if days >= 7: 
        return cost - 50
    elif days >= 3:
        return cost - 20


#2

@indigoblur99,

def rental_car_cost(days):
    cost = days * 40
    if days >= 7: 
        return cost - 50
    elif days >= 3:
        return cost - 20

#3

Thank so you so much, that took care of the problem!


#4

Now it is telling me "trip cost should take exactly three parameters"
However I do have the parameters in place correctly.

def trip_cost(city, days, spending_money):
return plane_ride_cost(city) + rental_car_cost(days) + spending_money
print trip_cost("Los Angeles", 5, 600)

*the indentations are correct in the actual code


#5

@indigoblur99,
Are you not forgetting a place to sleep.....


#6

I re-added that again and it is telling me the same thing.

def trip_cost(city, days, spending_money):
return plane_ride_cost(city) + hotel_cost(days) + rental_car_cost(days) + spending_money
print trip_cost("Los Angeles", 5, 600)

*return is indented


#7

never mind i got it to go. I got rid of the return that added everything together and it worked! Thanks for all your help!