return "you cannot
There's plenty of mistakes in your code.
cost (days*40) = 50should be
cost = cost - 50. Similarly for the next statement of
cost (days*40) = 20
- You need not have the
elsebranch since you are already
returning the total
costoutside of the if-elif-else ladder. And you are not supposed to return the string but the cost without any discounts on it.
Hope it helps! If you are unable to grasp these fixes, I highly recommend redoing the Python course from some point where you feel most comfortable. The statement you wrote -
cost (days*40) = 50 seems to suggest that you are missing the basic concepts so you should definitely fix such errors before moving on to higher concepts like functions and objects. Thanks!
yes it did thanks a lot