Taking a vacation


#1

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

#2

This does not look quite right.

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


#3

thanks very much this seems to have solved it


#4

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