Transportation


#1



Transportation


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
    elif city == "Los Angeles":
        return 475
def rental_car_cost(days):
        cost = 40 * days 
        if days >= 7:
            return cost == cost - 50
        elif days >= 3:
            return cost == cost - 20
        else:
            return cost == cost


#2

I am still getting errors with this... what is wrong??


#3

here:

return cost == cost - 50

why do two equal signs? which means check if is equal, just return cost - 50


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.