Python Program to Print Hello world!

By | October 3, 2021
Python Program to Print Hello world!

Printing Hello World would be the first program you encounter in any programming language, this represents that you write your first code where you giving instruction to the computer to say Hello World.

Code to print Hello World in Python:

print("Hello World!")

Output:

Vamware
Hello World!

If we compare Python with other programming languages, the same example would have taken more than 5 lines of code to print the same statement.

Let’s See the C++ program to print Hello World

#include <iostream>
using namespace std;

int main()
    {
       cout<<"Hello World";
       return 0;
    }

This C++ program is similar to the above Python program. Both are supposed to print the Hello World statement. As you can see that with Python we have to write less code compared to other programming languages. This makes Python a beginner-friendly programming language.

Click here to know the difference between C++ and Python.

Click here to know more about Python.

People are also reading:

Leave a Reply

Your email address will not be published. Required fields are marked *