Transportation


#1

https://www.codecademy.com/en/courses/python-beginner-P5YtY/1/3?curriculum_id=4f89dab3d788890003000096


Why does the block on the right says that
" File "python", line 18
elif days>=3 and days<7:
^
SyntaxError: invalid syntax"


#2

I think this basic formatting outline will help you solve your problem! :smiley:

def rental_car_cost(days):
    blah = blah
    if blah:
        blah = blah
    elif blah:
        blah = blah
    return blah

#3

It stii doesn`t work...


#4

When I said basic outline I meant that you should reformat the answer you had into the same spacing and such as my example not copy my example straight into your lesson! Your other answer was close to the correct answer but your error at first is dealing with your spacing that is wrong. Go back and correct as such! :thumbsup:


#5

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