print in Python 2 as if it was Python 3
- future
- print_function
from __future__ import print_function
print("hello", end="")
print("world")
helloworld
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
from __future__ import print_function
print("hello", end="")
print("world")
helloworld