You can’t expect to only spend money on the plane ride, hotel, and rental car when going on a vacation. There also needs to be room for additional costs like fancy food or souvenirs.



Modify your trip_cost function definition. Add a third argument, spending_money.

Modify what the trip_cost function does. Add the variable spending_money to the sum that it returns.

Take this course for free

Mini Info Outline Icon
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.

Or sign up using:

Already have an account?