Help with Taking a Vacation numb 7


#1

help please :smile_cat:
Layton help :older_woman:


#2

Please post your code :slight_smile:


#3

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):
    if days < 3:
        return 40 * days
    elif days > 6:
        return 40 * days - 50
    else:
        return 40 * days - 20
print trip_cost ("Los Angeles",5,600

#4

bandit are you Justin bieber?


#5

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