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 elif city == "Los Angeles": return 475 def rental_car_cost(days): if days >=7: return days * 40 - 50 elif days >=3: return days * 40 - 20 else: return days * 40 def trip_cost(city,days,spending_money): return rental_car_cost(days) + hotel_cost(days) + plane_ride_cost(city) + spending_money()
spending_money shouldn't be a function call, you should just add spending money
you don't have a spending money function, so spending_money shouldn't be a function call
does that mean like, to not put parentheses or something? i just started python yesterday soo...
also, thanks for being so active on here. i almost always see you helping out people, and it is almost always within like, 2 hours of it being posted so thanks ^_^
spot on, variable/function parameter:
thank you sooooo much!!!