 # Exercise - Data Analysis for Vacation Planning

what are the answers to these questions with their respective values
???

I tired to slove out this exercise in this fashion

``````def cost_trip(flight_rate,hotel_rate,car_rentel,duration_in_days):
total_hotel_cost = hotel_rate/duration_in_days;
total_car_rentel = math.ceil((duration_in_days/7))*car_rentel
total_trip_cost=total_hotel_cost+total_car_rentel+flight_rate;
return math.ceil(total_trip_cost);

mumbai=cost_trip(flight_rate=450,hotel_rate=10,car_rentel=70,duration_in_days=14);
mumbai
591``````

Does anyone know if this is correct? I am using python but it doesnt execute anything.

# Vacation planning exercise.

cost_flight_Paris = 200
cost_hotel_Paris = 20 * 7
cost_car_Paris = 200
cost_flight_London = 250
cost_hotel_London = 30 * 7
cost_car_London = 120
cost_flight_Dubai = 370
cost_hotel_Dubai = 15 * 7
cost_car_Dubai = 80
cost_flight_Mumbai = 450
cost_hotel_Mumbai = 10 * 7
cost_car_Mumbai = 70

Cost_Paris = cost_flight_Paris + cost_hotel_Paris + cost_car_Paris
Cost_London = cost_flight_London + cost_hotel_London + cost_car_London
Cost_Dubai = cost_flight_Dubai + cost_hotel_Dubai + cost_car_Dubai
Cost_Mumbai = cost_flight_Mumbai + cost_hotel_Mumbai + cost_car_Mumbai

def one_week_long_trip():
if Cost_Paris < Cost_London <= Cost_Dubai <= Cost_Mumbai:
return print(“The cheapest 1-week long trip would be Paris with a cost of \$ {}” .format(Cost_Paris)),
elif Cost_London < Cost_Paris <= Cost_Dubai <= Cost_Mumbai:
return print(“The cheapest 1-week long trip would be London with a cost of \$ {}” .format(Cost_London)),
elif Cost_Dubai < Cost_London <= Cost_Paris <= Cost_Mumbai:
return print(“The cheapest 1-week long trip would be Dubai with a cost of \$ {}”.format(Cost_Dubai)),
elif Cost_Mumbai < Cost_Dubai <= Cost_London <= Cost_Paris:
return print(“The cheapest 1-week long trip would be Mumbai with a cost of \$ {}”.format(Cost_Mumbai)),

one_week_long_trip()

This is my solution to the first 2 questions, I am having a tough time collecting my thoughts on the budgeting ones