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
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
"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
--- 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
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
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