print in Python 2
examples/2to3/print2.py
fname = 'Foo' lname = 'Bar' print("Name: %s %s" % (fname, lname)) print("Name: {} {}".format(fname, lname)) print(fname, lname) print fname, lname
Name: Foo Bar Name: Foo Bar ('Foo', 'Bar') Foo Bar
fname = 'Foo' lname = 'Bar' print("Name: %s %s" % (fname, lname)) print("Name: {} {}".format(fname, lname)) print(fname, lname) print fname, lname
Name: Foo Bar Name: Foo Bar ('Foo', 'Bar') Foo Bar