If you're stepping into the world of Python development, your first task is to set up Python and a great code editor like VS Code. Hereโs a super-simple guide to get you started!
Step 1: Download and Install Python
- Go to the official Python website: https://python.org
- Hover over the Downloads tab and select your OS (e.g., "Download for Windows").
- IMPORTANT: During installation, check the box that says โAdd Python to PATHโ โ this will save you trouble later.
- Complete the installation.
Step 2: Verify Python Installation
Open your terminal (or Command Prompt) and type:
python --version
You should see the version you installed.
Step 3: Download & Install VS Code
- Visit: https://code.visualstudio.com
- Click โDownload for Windows/Mac/Linuxโ.
- Install using the default settings.
Step 4: Set Up VS Code for Python
- Open VS Code.
- Go to Extensions (Sidebar).
- Search for โPythonโ by Microsoft and click Install.
- Press Ctrl + Shift + P (or Cmd + Shift + P on Mac), type "Python: Select Interpreter" and choose the Python version you installed.
Step 5: Run Your First Python Code
- Create a new file: hello.py
- Write:
print("Hello, Dev.to!")
Hello, Dev.to!
- Right-click the editor and select "Run Python File in Terminal".
Youโre all set! Now go build awesome Python projects! ๐
If you found this beginner-friendly guide helpful, please leave a like, drop a comment with your favorite part, and follow for more such easy-to-understand tutorials!
Top comments (1)
Simple, clear, and straight to the point โ perfect for anyone just starting their Python journey. Thanks for sharing this!"