Vidyalelo
Python · Q30

Python Introduction and basic

Programming · Python · question 30

Q30

What is the output of print("Hello, World!")?

A.
Hello, World!
Answer
B.
Hello
C.
World!
D.
Error

Answer: Option A

Solution

Answer: Option A
Solution:
The output of print("Hello, World!") is Hello, World!.
The print() function in Python is used to output text to the console. In this case, the function prints the string "Hello, World!" exactly as it is written, resulting in "Hello, World!" being displayed on the console. Therefore, the correct output is "Hello, World!".