Invalid Syntax

Rob Gaddi rgaddi at highlandtechnology.invalid
Tue Aug 9 16:22:37 EDT 2016


Ltc Hotspot wrote:

> Hi, Everyone:
>
> What is the source of the following, 
> 'error message: SyntaxError: invalid syntax (<string>, line 2)'
>
> v. Python 3.3
>
> Code reads:
>
> x=1
> if x==1
>     # indent 4 spaces
>     print "x = 1"
>
> Hal

A missing colon, the appropriate location of which is left as an
exercise to the reader.

-- 
Rob Gaddi, Highland Technology -- www.highlandtechnology.com
Email address domain is currently out of order.  See above to fix.



More information about the Python-list mailing list