Taking a vacation


ive done everything exactly correct yet I'm stuck please take a look

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


This does not look quite right.

The order of these two conditionals should be reversed so 7 comes first:


thanks very much this seems to have solved it


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