Transportation


#1

Hi Everyone, I met a problem on this chapter.

I worte the code as blowing:

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

But it doesn't work,and the screenshot is like this:

Traceback (most recent call last):
File "python/cli_runner.py", line 152, in

Could you help me? Thanks so much.


#2

here:

that is not a colon, this is:

:

i know they look very similair, but they are not the same. Replace all your "colons" with a colon


#3

Thanks so much! I will be more careful next time.


#4