Re: [Tutor] Can't print a string, gives me syntax error

2009-05-26 Thread Jeremiah Dodds
On Mon, May 25, 2009 at 6:46 PM, phpfood wrote: > I ran this in IDLE: > >>> t = 'hi' > >>> print t > SyntaxError: invalid syntax (, line 1) > > I've also tried this as sample.py : > import string > text = 'hello world' > print text > > > It gives me a syntax error on "print text" line > > What's

[Tutor] Can't print a string, gives me syntax error

2009-05-25 Thread phpfood
I ran this in IDLE: >>> t = 'hi' >>> print t SyntaxError: invalid syntax (, line 1) I've also tried this as sample.py : import string text = 'hello world' print text It gives me a syntax error on "print text" line What's going on? ___ Tutor maillist

Re: [Tutor] Can't print a string, gives me syntax error

2009-05-25 Thread Alan Gauld
"xbmuncher" wrote I ran this in IDLE: t = 'hi' print t SyntaxError: invalid syntax (, line 1) I've also tried this as sample.py : import string text = 'hello world' print text It gives me a syntax error on "print text" line Looks like you are using Python v3. Most tutorials are stil

Re: [Tutor] Can't print a string, gives me syntax error

2009-05-25 Thread Doug Reid
--- On Mon, 5/25/09, xbmuncher wrote: From: xbmuncher Subject: [Tutor] Can't print a string, gives me syntax error To: "tutor@python.org" Date: Monday, May 25, 2009, 5:48 PM I ran this in IDLE: >>> t = 'hi' >>> print t SyntaxError: invalid

Re: [Tutor] Can't print a string, gives me syntax error

2009-05-25 Thread Sander Sweers
2009/5/25 xbmuncher : > I ran this in IDLE: t = 'hi' print t > SyntaxError: invalid syntax (, 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

[Tutor] Can't print a string, gives me syntax error

2009-05-25 Thread xbmuncher
I ran this in IDLE: >>> t = 'hi' >>> print t SyntaxError: invalid syntax (, line 1) I've also tried this as sample.py : import string text = 'hello world' print text It gives me a syntax error on "print text" line What's going on? ___ Tutor maillist