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

Shreyansh KumarShreyansh Kumar
1 min read

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.

✅ After installing, run this in Terminal:

python --version

Step 2: Install VS Code


Step 3: Configure VS Code for Python

  1. Open VS Code.

  2. Click on the Extensions icon (or Ctrl+Shift+X).

  3. Search for "Python" by Microsoft — Install it.

  4. Open Command Palette (Ctrl+Shift+P) → Type: “Python: Select Interpreter” → Choose the correct Python version.

  1. Step 4: Run Python Code

    1. File → New File → Save as hello.py.

    2. Write:

    pythonCopyEditprint("Hello, Hashnode!")
    Hello, Hasnode!
  1. 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!

20
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.