Python Program to Print Hello world!

P

A simple program that displays “Hello, World!”. It’s often used to illustrate the syntax of the language.

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

  1. WHAT IS PYTHON? THINGS TO KNOW BEFORE CODE WITH PYTHON
  2. HOW DO I GET AND INSTALL PYTHON?
  3. PYTHON PRIMITIVES – VARIABLES, BUILT-IN DATA TYPES, COMMENTS, SYNTAX, AND SEMANTICS
  4. CODING APPROACHES IN PYTHON
  5. STYLE GUIDE FOR PROGRAMMING PYTHON CODE
  6. ERRORS AND EXCEPTIONS IN PYTHON
# 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.

A string is a sequence of characters. In Python, strings are enclosed inside single quotes, double quotes or triple quotes (”’, “””).

About the author

Pardeep Patel
Pardeep Patel

Add comment

Search

Basics of Python