Absolute beginner

Luc lucbonne at hotmail.com
Wed Dec 30 07:10:31 EST 2009


Also thanks Ben and Simon for your help !

On Dec 30, 1:07 pm, Luc <lucbo... at hotmail.com> wrote:
> Thanks Krister !
> Should have read specific 3.1 documentation :-(  .
>
> Regards,  Luc
>
> On Dec 30, 12:56 pm, Krister Svanlund <krister.svanl... at gmail.com>
> wrote:
>
> > 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,  <lucbo... 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