Absolute beginner

Krister Svanlund krister.svanlund at gmail.com
Wed Dec 30 06:56:43 EST 2009


In Python 3 the syntax for print has changed to print() so just put
braces around the string and you'r good to go!

On Wed, Dec 30, 2009 at 12:48 PM,  <lucbonne at hotmail.com> wrote:
> Hi there,
> I installed python 3.1 on Windows Vista PC.
> Am an absolute beginner with Python.
> This is my problem :
>
> In Idle :
>
> Python 3.1.1 (r311:74483, Aug 17 2009, 17:02:12) [MSC v.1500 32 bit
> (Intel)] on win32
> Type "copyright", "credits" or "license()" for more information.
>>>> print "Hello"
> SyntaxError: invalid syntax (<pyshell#0>, line 1)
>
> At a dos-prompt :
>
> Python 3.1.1 (r311:74483, Aug 17 2009, 17:02:12) [MSC v.1500 32 bit
> (Intel)] on
> win32
> Type "help", "copyright", "credits" or "license" for more information.
>>>> print "Hello"
>  File "<stdin>", line 1
>    print "Hello"
>                ^
> SyntaxError: invalid syntax
>>>>
>
> Looks stupid, probably is, but I cannot figure it out.
>
> Thanks for any help !
>
> Lucky
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>



More information about the Python-list mailing list