if statement
Tim Golden
tim.golden at viacom-outdoor.co.uk
Mon Jun 28 08:46:22 EDT 2004
Ajay>
> syntax error, invalid syntax is what i got
Ajay, you're going to have to try a bit harder. Can
you cut-and-paste the output from an interpreter session
into an email and send it? It's very hard to guess what's
going to go wrong from a small piece of code which can't
possibly run by itself, and the fact that you're
seeing a "syntax error, invalid syntax".
This is the kind of thing (although obviously
relevant to your program):
<screendump>
ActivePython 2.2.3 Build 227 (ActiveState Corp.) based on
Python 2.2.3 (#42, Nov 13 2003, 09:57:55) [MSC 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> x = 1
>>> b = 1|
File "<stdin>", line 1
b = 1|
^
SyntaxError: invalid syntax
>>>
</screendump>
TJG
________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
More information about the Python-list
mailing list