4.transportation-what is the problem here?


why it is not working?

def rental_car_cost(days):
    cost_rent = days * 40
    if days >= 7:
        cost_rent -= 50
    elif  days >= 3:
        cost_rent -= 20
   return cost_rent


what error do you get? IndentionError? return cost_rent should have one more space indent, it currently doesn't match any other indent level


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