2009/5/25 xbmuncher <[email protected]>: > I ran this in IDLE: >>>> t = 'hi' >>>> print t > SyntaxError: invalid syntax (<pyshell#3>, line 1)
What version of python are you using (I suspect version 3)? > I've also tried this as sample.py : > import string > text = 'hello world' > print text If you are using python 3 then the print statement has been replaced by the print function. Try: print(text) Greets Sander _______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor
