Re: [Tutor] What's the invalid synax? Error message and code supplied.

2005-07-31 Thread Alan G
> 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

Re: [Tutor] What's the invalid synax? Error message and code supplied.

2005-07-30 Thread python-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)

[Tutor] What's the invalid synax? Error message and code supplied.

2005-07-30 Thread Nathan Pinno
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 '