Dipo Elegbede wrote:
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)
>>> print ('hello')
hello
>>>
the above print is what i came across having installed python 3.0 and
trying to run the print command.
with previous versions, a print command takes the form
print 'parameter'
and the output is
parameter
but with this new version it seems you need to put in brackets like:
print ('hello')
to get an output like:
hello
please confirm this is a new syntax for print.
thank you.
i will put up morte concerns as they arrive.
thanks.
--
Elegbede Muhammed Oladipupo
OCA
+2348077682428
+2347042171716
www.dudupay.com <http://www.dudupay.com>
Mobile Banking Solutions | Transaction Processing | Enterprise
Application Development
------------------------------------------------------------------------
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
The Python 3.x series changed the print statement to a print function.
--
Kind Regards,
Christian Witts
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor