4 ms·
Why not just always use print() as a function? That's only a single mental change, and works in both 2 and 3.
by orpheansodality 11y ago
Why not just always use print() as a function? That's only a single mental change, and works in both 2 and 3.
- witty_username 11y agoprint isn't a function (even though print("hello") works) in Python 2. But you can use __future__ to make it a function.