[Tutor] IDLE colon = syntax error

Carnell, James E jecarnell at saintfrancis.com
Wed Sep 16 22:41:58 CEST 2009


I searched through archives and wasn't able to find the solution.

Using IDLE, python 3, Ubuntu (default installations).

Using command line:

	> if 1 == 1:
		print "equal"
	> equal

Using IDLE:

	>if 1 == 1:
		print "equal"
	>SyntaxError: invalid syntax line 2

Just for kicks in IDLE:
	
	>ord(':')  #see if it gives me some wack ASCII code
	>58

Oh well, I imagine this is easy, but I just don't know... (what I get
for using a new computer and OS today)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090916/eab8bb1a/attachment-0001.htm>


More information about the Tutor mailing list