Introduction


Python is a general purpose , high level , interpreted language with easy syntax and dynamic semantics . It was created by Guido Van Rossum in 1989.

Python is a cross-platform programming language, which means that it can run on multiple platforms like Windows, macOS, Linux, and has even been ported to the Java and .NET virtual machines. It is free and open-source.

Even though most of today's Linux and Mac have Python pre-installed in it, the version might be out-of-date. So, it is always a good idea to install the most current version.

Python Program to Print Hello world!

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

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.