And also wanna ask, why the button always blank when i wanna click it,
it make me wanna slam my laptop....
@byteninja98701: Like the error message tells you, you're supposed to pass three arguments to your function trip_cost .
exampleFunction(arg1, arg2, arg3)
In the code above, you seem to be only passing the city's name but not the quantity of days.
Try to fix that and see how it works!
Try refreshing the page!
so i need to type in the exampleFunction thing?
@byteninja98701: The example I gave you is to simple illustrate the idea of it.
Check the instructions and see what you should pass for that function.
where do i gonna insert in that thing?
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.
def trip_cost(city, days, spending_money):
With the code above, you'll be following the instructions where you should add a third argument.
return rental_car_cost(days) + hotel_cost(days) + plane_ride_cost(city) + spending_money
And with this code, you'll follow the second instruction where we should add the variable spending_money to the sum and return the value.
it say my line 33 have some problem
but i just copy the instructions...
"Your final call should look something like:"
print trip_cost("SOME CITY", NUM_DAYS, SPENDING_MONEY)
You'll replace each part of it with the correct value, where "SOME CITY" should be one on the city names, NUM_DAYS should be the quantity of days you'll be travelling and SPENDING_MONEY should be how much you'll spend on this trip.
print trip_cost("Los Angeles", 5, 600)