Hello World Project
Abstract
Creating a “Hello World” project is a classic and essential first step for anyone learning a new programming language. In this guide, we’ll walk through the process of building a simple “Hello World” project using Python. This project serves as a foundation for understanding basic syntax, setting up a development environment, and executing a Python script.
Prerequisites
- Python 3.6 or above
- Text Editor or IDE (Visual Studio Code, PyCharm, etc.)
Getting Started
Create a new project
- Open Text Editor or IDE
- Select File > New File from the menu bar
- Select File > Save As from the menu bar
- Name the file
hello_world.py
hello_world.py
- Select File > Save from the menu bar
Write the code
- Add the following code to the file:
⚙️ Hello World
Hello World
# Hello World
print("Hello World")
Hello World
# Hello World
print("Hello World")
- Select File > Save from the menu bar
- Select Terminal > New Terminal from the menu bar
- In the terminal,
command
C:\Users\username\Documents\hello_world> python hello_world.py
Hello World!
command
C:\Users\username\Documents\hello_world> python hello_world.py
Hello World!
Next Steps
Congratulations! You’ve successfully created a “Hello World” project using Python. Now that you’ve completed this project, you can continue learning Python by completing the next project in the series on Python Central Hub. You can find the complete source code of this project on Github.
Was this page helpful?
Let us know how we did