First page Back Continue Last page Overview Graphics

„Hello World“ in Python

>>> print("Hello World")

Hello World

>>>

In Python 2.x with and without brackets.

The print statement has been turned into a function in Python3. That's why the arguments have to be in brackets.

To get the Python3 behaviour in Python2.x:

from __future__ import print_function