Tranportation


#1

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):
    crp = 40 * days
    if days >= 7:
        crp = (days * 40) - 50
    elif days >= 3:
        crp = (days * 40) - 20
    else:
        crp = days * 40
    return days

Something is wrong but I dont know what, Can someone look at it?


#2

your rental_car_cost function returns how many days the car is rented, not how much it cost to rent the car for the amount of days


#3

I see, thank you. Now it works


#4