# Pulling it together

#1

Hey guys, been struggling with this problem for an hour with an assortment of issues. If someone could take a look at my code and point me in the right direction I'd really appreciate it

Replace this line with your code. Do not remove the backticks that are above or below this line.
nights = input("How many nights")
days = input("How many days")
city = input("What city")
def hotel_cost(nights):
return 140*nights
def plane_ride_cost(city):

if city =="Charlotte":
return 183
elif city == "Tampa":
return 220
elif city == "Los Angeles":
return 475
else:
return 222
def rental_car_cost(days):
total = 40* days
if days >= 7:
elif days >= 3:
else:
def trip_cost(city, days):
trip_cost=hotel_cost(days) + plane_ride_cost(city) + rental_car_cost(days)
return trip_cost
print(trip_cost)

#2

This variable name is probably not the best to use. cost is sufficient for a local variable. It shouldn't be the name of the function.

#3

@webwhiz69634 when I did this lesson I didn't have to do the user input and it worked just fine so try taking those out and then see what happens.