I am very new to python and I am trying to write a simple vacation program. In my program, the user is required to input city, number of days of vacation etc... and in the end I calculate the total cost, based on some simple calculations defined in few functions.
My problem is, I am not able to print the output of a particular function which has two input parameters, without adding the input parameters in the print statement !!!
But, since the user enters the values, I don't want to hardcode them.
def trip_cost(city, days,spending_money):
city = hotel_cost(days) + plane_ride_cost(city)
days = rental_car_cost(days)
total_cost = city + days + spending_money
return total_cost
I am new and lost !!!
Kindly help me....