Take a vacation Forum


#1

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
else:
return 475

plane_ride_cost("Tampa")

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

rental_car_cost(7)


#2

Hi, is there something you'd like to ask?
Keep in mind that there's going to be somebody on the other end, if you want something you've got to explain what that is.

Also please take the time to ensure that your code is intact/correctly formatted


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.