I believe my code is as instructed. It also matches the successful code from various forum posts but is still running into an error.
When my input is set to (days) I get the following error:
When I change it to (day) I get:
If I try to include both inputs (days, day) I fail the single input check:
Why is it (days) failing if that is what was instructed? Where am I going wrong?
Any advice or suggestions are much appreciated!
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): cost = days * 40 if days >= 7: cost -= 50 elif day >= 3: cost -= 20 return cost