<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>
<Below this line, add a link to the EXACT exercise that you are stuck at.>
<In what way does your code behave incorrectly? Include ALL error messages.>
The programs doesn’t produce the correct code everything the string “Charlotte” and any number are used as arguments for the trip_cost function.
<What do you expect to happen instead?>
For example, I expected to get 1243 for trip_cost(“Charlotte”, 6), but I got 1240 instead.
Replace this line with your code.
cost = 140 * nights
if city == “Charlotte”:
elif city == “Tampa”:
elif city == “Pittsburgh”:
elif city == “Los Angeles”:
cost = 40 * days
if days >= 7:
cost -= 50
elif days >= 3 and days < 7:
cost -= 20
def trip_cost(city, days):
total = rental_car_cost(days) + hotel_cost(days) + plan_ride_cost(city)
<do not remove the three backticks above>