Stuck here almost 10 hrs


#1


all the code they said working
when i use it, here error there error.


#2

And also wanna ask, why the button always blank when i wanna click it,
it make me wanna slam my laptop....


#3

@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!


#4

so i need to type in the exampleFunction thing?


#5

@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.


#6

where do i gonna insert in that thing?


#7

@byteninja98701:

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.


#8

so i used your code and passed..
another problem came.....


#9

it say my line 33 have some problem

but i just copy the instructions...


#10

@byteninja98701:
"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.

Example:

print trip_cost("Los Angeles", 5, 600)