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"
- Start
- Print the message: Display the text "Hello, World!" using the
print()
function. - End
Python Program to print “Hello, World!”
python
# Python program to print Hello World
# Print the message "Hello, World!"
print("Hello, World!")
Code Explanation
- Printing the message:
The program uses Python's built-inprint()
function to display text. The message"Hello, World!"
is passed as a string argument to theprint()
function, which then displays the text on the screen. - No input or processing:
Since this is a basic program, no user input or calculations are required. It directly outputs the message.