🎯 Complete Guide: Setting Up Python and VS Code on Your Machine


Hey Hashnode friends! Ready to start your Python journey? Here’s a clear and complete guide to set up Python and VS Code from scratch.
Step 1: Install Python
🔗 Head to https://python.org.
Click “Download”.
Select your OS and download the installer.
Important: Check "Add Python to PATH" before clicking "Install Now".
✅ After installing, run this in Terminal:
python --version
Step 2: Install VS Code
Download from: https://code.visualstudio.com.
Step 3: Configure VS Code for Python
Click on the Extensions icon (or
Ctrl+Shif
t+X
).Open Command Palette (
Ctrl+Shift+P
) → Type: “Python: Select Interpreter” → Choose the correct Python version.
Step 4: Run Python Code
File → New File → Save as
hello.py
.Write:
pythonCopyEditprint("Hello, Hashnode!")
Hello, Hasnode!
- Right-click inside the file → "Run Python File in Terminal".
🔥 Your first Python program is running!
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!
Subscribe to my newsletter
Read articles from Shreyansh Kumar directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by

Shreyansh Kumar
Shreyansh Kumar
A 2nd year student , majoring in Economics with a minor in Human resource but I am starting by journey of becoming a Data Analyst, learning new skills and stepping into a whole new exciting world.