> option = int(raw_input('Option (1,2,3,4,5,6,9): ')
Count the parentheses, there's one missing!
Alan G.
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
I'd count the parenthesis on the prior line:
option = int(raw_input('Option (1,2,3,4,5,6,9): ')
while option != 9:
Also when you notice that you are copying and pasting the same line over and
over, it may be time to think about reorganizing the code a little bit (Once
you have it working)
Here's the message:
File "D:\Python22\prog4.py", line 19 while
option != 9: ^SyntaxError:
invalid syntax
And the code:
#This program finds the area and perimeter of circles, rectangles, and
squares.def menu(): print '1) Area
(Circle)' print '2) Area
(Rectangle)' print '