# I don't even know

#1

def hotel_cost(nights):
cost_nights = nights * 140
return cost_nights

def plane_ride_cost(city):
city = city.lower
if city == 'charlotte':
plane = 183
elif city == 'tampa':
plane = 220
elif city == 'pittsburgh':
plane = 222
elif city == 'los angeles':
plane = 475
else:
print 'You have entered an invalid city name'

def rental_car_cost(days):
cost = 40 * days
if days >= 7:
cost -= 50
elif days >= 3:
cost -=20
return cost

print(rental_car_cost(5))
def trip_cost(city, days):
return hotel_cost(days) + plane_ride_cost(city) + rental_car_cost(days)

#2

Which number exersize is this for? also what is the error you are getting if any

#3

5/7 Taking a vacation

I fixed hotel to nights but it still gives me an error for some reason.

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):
rent = 40 * days
if days >= 7:
rent -= 50
elif days >= 3:
rent -= 20
return rent
def trip_cost(city,days):
return rental_car_cost(days)+ hotel_cost(nights)+plane_ride_cost(city)