Transportation problem


#1

this is my 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
    elif city == "Los Angeles":
        return 475

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

this is the problem
File "python", line 16
if days >= 7:
^
IndentationError: unindent does not match any outer indentation level


#3

@konaesan, i indented the code for you. Now you can help

@saba_keon, please read this help topic so you can make intend show on the forum:


#4

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
    elif city == "Los Angeles":
        return 475

def retal_car_cost(days):
    cost = 40 * days #here
    if days >= 7:
        money -= 50 #money or cost??
    elif days >= 3:
        cost -=20
    return cost

#5

thanks @stetim94 :+1:


#6

it was supposed to be cost and i changed it but i still got the same error


#7

nvm i fixed it. thanks for all the help, i really appreciated