Python Program to Print Hello world!

To understand this example, you should have the knowledge of the following Python programming topics:


Source Code

# This program prints Hello, world!

print('Hello, world!')

Output

Hello, world!

In this program, we have used the built-in print() function to print the string Hello, world! on our screen.

By the way, a string is a sequence of characters. In Python, strings are enclosed inside single quotes, double quotes, or triple quotes.

Did you find this article helpful?

Your path to become a builder.

Builders don’t just know how to code, they create solutions that matter. Escape tutorial hell and ship real projects.

Try Programiz PRO
  • Real-World Projects
  • On-Demand Learning
  • AI Mentor
  • Builder Community