i get the message "Oops, try again. It looks like rental_car_cost returns 120 instead of the correct amount (100) for 3 days." help me if u can i would really appreciate it!

Replace this line with your code.


a function ends the moment a return keyword is reached

so, line 13, your function ends, the rest of the function (applying discount) is never reached


i get the same message even though i changed the location or return


return 40 * days, your function ends here. The return keyword you used causes the function to end

you should store the result of this multiplication in a variable, then apply discount, then return this variable

the indention change you made to the last line of your function is good :slight_smile: Just one more change needed


Thank u very much have a nice day !!


i wouldn't use the same name for the variable and the function, just a habit. It just increases the change of something going wrong


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.