In Python 2, it is a special statement and Python 3, print is a function.


print “tj”

The output is


Now in Python 3, you have to use parentheses and have quotation in side.

An example of Python 3 is,

print (“tj is awesome”)

The output is ,

tj is awesome


Links to some more awesome information


Leave a Reply

Your email address will not be published. Required fields are marked *
You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>