print in Python 2 as if it was Python 3

  • __future__
  • print_function


examples/basics/print3_in2.py

from __future__ import print_function
print("hello", end="")
print("world")
helloworld