Re: Help for to do a script

Alan Gauld <[email protected]> Fri, 16 Mar 2012 19:07:37 +0000
Newsgroups gmane.comp.python.tutor,gmane.comp.python.porting,gmane.comp.python.image
Message-ID <[email protected]>
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  -  [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor