Syntax error for print

jsm4321 at gmail.com jsm4321 at gmail.com
Thu Dec 25 19:53:31 CET 2008


IDLE 3.0
>>> print "hello"
SyntaxError: invalid syntax (<pyshell#0>, line 1)
>>> 3+3
6
>>> var = 4
>>> var = var*4
>>> print var
SyntaxError: invalid syntax (<pyshell#5>, line 1)
>>>



Any idea on why I am getting this error.
I have just started learning python and I am stuck at first thing
itself.
Any help would be greatly appreciated.


Thanks,
Jeetu Sahil





More information about the Python-list mailing list