Basics

Hello World

The first Python program prints a line of text.

The whole program is one statement. Python evaluates the string literal "hello world" and passes that value to print(), which writes it to standard output — the output panel shows exactly that line.

Source

print("hello world")

Output

hello world
Every Python program starts as source and produces text on standard output. The smallest mental model.

Notes

See also

Run the complete example

Example code

Expected output

hello world

Execution time appears here after you run the example.