On 17/08/14 14:11, Sajjadul Islam wrote:
Hello forum,

I have started working with python 2.7.6 and i am trying to print the
following string value:

print("Same", "message", "as before")

Looks like you are using a Python v3 tutorial on Python 2.7.
The syntax of printing changed a lot in Python 3.

The good news is that you can fake it in Python 2.7 by adding
the line:

from __future__ import print_function

at the start of your session/program.
Then you get Python3 style printing in 2.7.

HTH

--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.flickr.com/photos/alangauldphotos

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to