New to python, can i ask for a little help?

Mensanator mensanator at aol.com
Wed May 13 00:31:01 EDT 2009


On May 12, 11:18�pm, "warhammer1... at gmail.com"
<warhammer1... at gmail.com> wrote:
> I loaded python 3.1
> I can use the gui and i see the following:
>
> Python 3.0.1 (r301:69561, Feb 13 2009, 20:04:18) [MSC v.1500 32 bit
> (Intel)] on win32
> Type "copyright", "credits" or "license()" for more information.
>
>
>
> It would seem that this is working correctly and there is no path
> problem.
> I am running windows vista.
>
> When i put in a test string i see this:
>
> Python 3.0.1 (r301:69561, Feb 13 2009, 20:04:18) [MSC v.1500 32 bit
> (Intel)] on win32
> Type "copyright", "credits" or "license()" for more information.>>> print "hello world!"
>
> SyntaxError: invalid syntax (<pyshell#0>, line 1)
>
>
>
> Can anyone tell me what is wrong?

You're using Python 3.0.1. Print is now a function.
I think you would do print("Hello World"). Look it
up in the documentation.

> I didnt expect that error....

And it would have worked in Python 2.x.

>
> Andrew




More information about the Python-list mailing list