If I went on vacation for 10 days and spent 20 dollars a day, spending_money was supposed to represent $200. What am I doing wrong?
If I remove line 3 that says: "spending_money*=days", my code works fine.
My code returns the error message: "Oops, try again. trip_cost('Charlotte', 4, 38) returned 1035 instead of the correct value 921". This error message returns random cities and numbers every time I try the code.
def trip_cost(city, days, spending_money): nights=days spending_money*=days return rental_car_cost(days) + hotel_cost(days) + plane_ride_cost(city) + spending_money