On 16/03/12 18:52, Boris Vladimir Comi wrote:

*File "/home/mcidasv/JYTHON/TIR.py", line 22
count = count + 1;
^
SyntaxError: invalid syntax*

Error messages indicate where Python found the problem.
Often the real problem is a line or so before that.

In your case you omitted the colon after the if statement.

Note that Python does not require semi colons at
the end of lines. It rarely causes problems but
it doesn't help either.

--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to