Home / Programs / Python program to print Hello World
🚀 Programming Example

Python program to print Hello World

👁 441 Views
💻 Practical Program
📘 Step Learning
Python program to print Hello World.

📌 Information & Algorithm

Python is a popular, general-purpose programming language and has straight forward syntax. Python also provides many built-in functions. In this tutorial, we will learn how to start with Python programming.

This is the most basic Python program. It specifies how to print any statement in Python.

In old Python (up to Python 2.7.0), the print command is not written in parenthesis, but in new python software (Python 3.4.3), it is mandatory to add parenthesis to print a statement.

Let' see the following example to print Hello World

💻 Program Code

print ('Hello World')  
                        

🖥 Program Output

Hello World
                            

📘 Explanation

In the above code, we have used the built-in print() method to print the string 'Hello World' on the terminal. Python takes only one line to print the 'hello world' program.

📚 Learning Subject

Master Programming Through Practical Examples

Improve your coding logic, problem-solving skills and programming confidence by practicing real-world examples with explanations.

🎯 How to learn from this example

First understand the algorithm carefully. Then study the program line-by-line and compare it with the output. Finally, review the explanation section to strengthen your logic and programming understanding.

🔥 Practice suggestion

Rewrite the program without looking at the code. Modify values, conditions or logic and run it again. This helps improve confidence and strengthens coding skills much faster.