3 ms·
In 2.7, it does.
by mahmoudhossam 14y ago
In 2.7, it does.
- buster 14y agoUnfortunately not.. atleast not in my 2.7.3 prompt. Only with the __future__ import :(
- jau 14y agoIn 2.6.6 also works.
- ch0wn 14y agoIf 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')