My code doesn't work i get syntax error on line 32.area-calculator syntax error: invalid syntax


#1

python AreaCalculator.py
File "AreaCalculator.py", line 32
elif option == "T":
^
SyntaxError: invalid syntax


#2

Hi @yomama1997,

You have this as part of your code ...

    print ("area: %.2f. \n%s" % (area, hint)

elif option == "T":

When a SyntaxError occurs at the beginning of a line, make sure the previous line is complete and correct, including closing of all parentheses, where appropriate.


#3

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