👋

How to Print "Hello World" in Python

PythonBeginner

The classic first program — print text to the console.

Code Example

Python
# Hello World in Python
print("Hello, World!")
print("Welcome to Python programming!")

Explanation

The print() function outputs text to the console. Strings are enclosed in quotes (single or double).

Related Tutorials