Python 2's `print` was a statement (`print 'Hello'`), whereas Python 3 transformed it into a function (`print('Hello')`), requiring parentheses and enabling more flexible arguments like `sep` and `end` for output formatting.
Open the full topic