Im a little bit confused because i thought it will work that way too
I had it like that:
def rental_car_cost(days): cost = days * 40 if days >= 7: cost - 50 elif days >= 3: cost - 20 return cost
but that was wrong cause i aint made the returns for if and elif..
But why do i need to do that, when i return at the end?
Or is it like, without return, it wont save the cost in if and elif?
Thanks for the answers, just wanna learn eheh