# Bringing together all the execicios taking Vacation

#1

``````Replace this line with your code.

which and the error code that

def hotel_cost (nights):
return * 140 nights
hotel_cost print (10)
def plane_ride_cost (city):
if city == "Charlotte":
return 183
elif city == "cover":
return 220
elif city == "Pittsburgh":
return 222
else:
city == "Los Angeles"
return 475
def rental_car_cost (days):
cost = 40 days *
if days> 7 days or == 7:
return cost -50
elif days> 3 days or == 3:
return cost -20
else:
return cost
print rental_car_cost (1)

the error here this time to add up the total cost of your trip is to gather all previous functions to fully all anyone can say what the error and the time sum of all

def trip_cost (city, days):
return rental_car_cost (days) + hotel_cost (days) + plane_ride_cost (city)
def hotel_cost (nights):
return rental_car_cost (nights) + hotel_cost (nights)``````

#2

def hotel_cost (nights):
return 140 * nights
print hotel_cost (10)
def plane_ride_cost (city):
if city == "Charlotte":
return 183
elif city == "cover":
return 220
elif city == "Pittsburgh":
return 222
else:
city == "Los Angeles"
return 475
def rental_car_cost (days):
cost = 40 * days
if days>= 7 :
return cost -50
elif days>= 3 :
return cost -20
else:
return cost
print rental_car_cost (1)

# the error here this time to add up the total cost of your trip is to gather all previous functions to fully all anyone can say what the error and the time sum of all

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