Python by example

Hello world in Python

In Python, the print function is used to display text on the screen. The following example shows how to print the message “Hello, world!” to the console:

print("Hello, world!")
Next example: Values