Hello World
Your First Python Program
Every programming journey begins with a simple program that displays "Hello, World!" on the screen. In Python, this is incredibly simple — just one line of code.
python
print("Hello, World!")The
print() function outputs text to the screen. You can put any text inside the parentheses, wrapped in quotes. Python accepts both single quotes '...' and double quotes "...".Tip:Python is one of the easiest languages to learn because its syntax reads almost like English!
Try It Yourself
Use the code playground below to print your own message. Try changing the text inside the quotes and click Run to see the output.
PlaygroundPython
Output
Click "Run" to see output