I created my own version of this program that works just fine, but I can't get this to work how codeacademy wants me to do it. Every time I try to run it, it says "NameError: days not defined". But isn't "days" just an arbitrary argument in my function? I'm not sure what I'm missing. If I delete my first function, it then says "city is not defined", so this seems to be an issue with all of my arguments.

Thank you in advance for your help!

```
def hotel_cost(days):
return 140 * days
print "Hotel cost is %s" % (hotel_cost(days))
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
else:
return "Free trip"
print "Plane ticket is %s" % (plane_ride_cost(city))
def rental_car_cost(days):
cost = int(days) * 40
if days >= 7:
cost -= 50
elif days >= 3:
cost -= 20
return cost
print "Rental car is %s" % (rental_car_cost(days))
def trip_cost(city, days, spending_money):
return int(plane_ride_cost(city)) + hotel_cost(days) + rental_car_cost(days) + spending_money
print "Total cost is %s" % (trip_cost(city, days, meals))
trip_cost("Los Angeles", 5, 6)
```