Javatpoint Logo
Javatpoint Logo

Python program to print "Hello Python"

Python is a popular, general-purpose programming language and has straightforward 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.

Steps for printing Hello Python

  • Initiate a text editor or an IDE.
  • Create a new Python file.
  • Name the file according to your choice by including .py extension.
  • For the purpose of this example, we will name the file "hello_python.py ".
  • After writing the code, save the file and run using python interpreter.
  • Open a command prompt or the terminal.
  • Explore to the registry where the document is saved.
  • Type the below command.

Let' see the following example to print Hello Python

Code

Output:

Hello Python

In the above code, we have used the built-in print() method to print the string 'Hello Python' on the terminal. The string or text that we want to print must be enclosed with double quotes (" "). Python takes only one line to print the 'Hello Python' program.

Python program to print Hello Python

Example :

Let us now print the most popular " Hello World!" Program

Code

Output:

Hello World!

Conclusion:

All in all, Python is a strong and flexible programming language that is not difficult to learn and utilize. Printing a message on the screen is quite possibly the most fundamental work in Python, and the "print" proclamation simplifies it as such. By following the means illustrated in this article, we now have the option to compose our own Python projects to show messages on the screen.







Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA