Python Program to print Hello World

Write a Python program that displays the message "Hello, World!" on the screen.

Example:

  • Input: (No input required)
  • Output: Hello, World!

Algorithm to print "Hello World"

  1. Start
  2. Print the message: Display the text "Hello, World!" using the print() function.
  3. End

Python Program to print “Hello, World!”

python
# Python program to print Hello World

# Print the message "Hello, World!"
print("Hello, World!")

Code Explanation

  1. Printing the message:
    The program uses Python's built-in print() function to display text. The message "Hello, World!" is passed as a string argument to the print() function, which then displays the text on the screen.
  2. No input or processing:
    Since this is a basic program, no user input or calculations are required. It directly outputs the message.

Python

8996

492

Related Articles