Ok, I'm confused, what is the difference between
They both have the same output!
print is statement in Python 2, and brackets around single value do nothing, so basically both are Ok in Python2. In Python3 print is function, which is usefull. The same style of printing can be activated in Python2 by from __future__ import print_function So the first version fails in Python3. … Read More
In python 2, there is no difference between print "foo" print ("foo") because print is a statement and the expression `("foo")` has the same value as the expression `"foo"`. On the other hand the statements print "foo", "bar" print ("foo", "bar") are **not** equivalent because `("foo", "bar")` is a single … Read More
Edited by Gribouillis