Python Output Handling

Writing to screen

>>> print("Hello World")

Hello World

>>> print("Hello");print("World")

Hello

World

>>> print("Hello ", end='');print("World")

Hello World

Writing to file

print("Hello World", file=/tmp/hello.txt)

Bibliography