Getting Started with Python
1. Creating Your First Python Project
Create a Folder for the Project:
-
Make a new folder on your computer (e.g.,
PythonProjects). -
Open VS Code and click File → Open Folder.
-
Select the folder.
Create Python File:
-
Inside VS Code, click File → New File.
-
Save it as
hello.py(the.pyextension is for Python),
2. Writing Your First Python Program
Code:
print("Hello, World!")
How to Run the Program:
-
Right-click on the file and select ‘Run Python File in Terminal’, or
-
Press `Ctrl + “ (backtick) to open terminal and run:
python hello.py
Expected Output:
Hello, World!
