Hi, I’m learning python on codeacademy. However, I have observed that the exercise is glitched. I rewrote the exact commands word for word back into the document provided and it still gives me an x. Then, I copy pasted the solution after resetting the exercise, it still gave me an x. Please fix this error. The page is 6/7 Taking a Vacation exercise.


Hey, You Never Know

For some reason the author ramped up the code requirements. If your solution looks like this, and doesn’t work,

def trip_cost(city, days, spending_money):
  return hotel_cost(days - 1) + rental_car_cost(days) + plane_ride_cost(city) + spending_money

then take away the -1. If your solution does not have the -1 then try it that way.