Transportation


#1


I do not understan why I got an indent issue. someone can help?

Oops, try again. Your code looks a bit off. Feel free to peek back at earlier exercises if you need a refresher! Your code threw the following error: unindent does not match any outer indentation level (python, line 14)


Replace this line with your code. 
def hotel_cost(nights):
    return 140*nights
def plane_ride_cost(city):
    if city=="Charlotte":
        return 183
    elif city=="Tampa":
        return 220
    elif city=="Pittsburgh":
        return 222
    else:
        return 475
def rental_car_cost(days):
        cost= days * 40
    if (days>=7):
       return cost - 50
    elif (days >=3) and (days <= 7):
        return cost - 20
    else:
        return cost


#2

Hi @moni95,

In the rental_car_cost function, the indentation of this statement should match the indentation of the line below it ...

        cost= days * 40

#3

these two lines should have the same indent: indent cost to match the if statement
cost= days * 40
if (days>=7):

hopefully that fixes the error


#4

thank you very much. was very helpful


#5