Y
Hacker News
new
|
ask
|
show
|
jobs
by
jau
4888 days ago
In 2.6.6 also works.
1 comments
ch0wn
4888 days ago
If you use print() in py2k, you're still using the print statement and group the argument in parentheses. It falls apart, if you try to use more than one argument, because it's interpreted as a tuple then.
Python3:
>>> print("hello", "world") hello world
Python2:
>>> print("hello", "world") ('hello', 'world')
link
Python3:
Python2: