None is the default returned value, so no return keyword is reached when the car is rented for a single day. How do you think the flow of your program is when the car is rented for a single day?
So what correction should I make for it to work?
you mean at the end I should add
Well, there are multiple things you can do.
that is a possibility, yes. Given no discount has to be applied. You could also use
Thanks, it worked
i would be happy to know the alternate method if you would like to share
the alternative is to reduce
cost in the
elif clause, and then at the end of the function to
Got it. Thank you so much for your help
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.