Python Print 'Hello, World!'

Document 对象参考手册Python3 Examples

This is a very basic Python program that prints out the sentence "Hello, World!". This is the first program for many programming language learners, used to get familiar with the basic syntax and runtime environment.

Example

print("Hello, World!")

Code Analysis:

  • print()is a built-in function in Python, used to output the specified content to the console.
  • "Hello, World!"is a string, representing the content to be printed. In Python, strings can use single quotes'or double quotes"to enclose them.

Output result:

Hello, World!

Document 对象参考手册Python3 Examples

Other Extensions