HomePYTHON✅Install Python, IDE (VSCode / PyCharm), and Run Your First Python Program

✅Install Python, IDE (VSCode / PyCharm), and Run Your First Python Program

🔧 Step 1: Install Python (Windows)

✅ 1. Download Python

✅ 2. Run Installer

  • IMPORTANT: Check the box: ✅ “Add Python to PATH”
  • Click: Install Now
  • After installation, click “Close”

✅ 3. Verify Installation

Open Command Prompt and type:

python --version

You should see something like:

Python 3.12.2

🧠 What is PATH?

PATH tells your system where to find the Python interpreter from anywhere in the terminal. Checking the “Add Python to PATH” box during install saves you from errors later.


💻 Step 2: Install IDE (Choose One)


💡 Option 1: VSCode (Recommended for Beginners)

✅ Install VSCode

✅ Install Python Extension

  • Open VSCode
  • Click Extensions (or press Ctrl+Shift+X)
  • Search Python, install the extension by Microsoft

💡 Option 2: PyCharm

✅ Install PyCharm


🧪 Step 3: Your First Python Program

✅ Create File

In VSCode or PyCharm:

  • Create a new file: hello.py

✅ Write Your First Code

print("Hello, World!")

✅ Run the Program

🟦 In VSCode:

  1. Right-click in the editor → Click Run Python File in Terminal
  2. OR press Ctrl + F5

🟦 In PyCharm:

  1. Right-click the file → Run ‘hello’

✅ Output:

Hello, World!

📌 Bonus Tip: Run Python in Terminal (without IDE)

Open Command Prompt, navigate to the file folder:

cd path\to\your\folder
python hello.py

📚 Summary

TaskDone ✅
Python Installed & Verified
IDE (VSCode or PyCharm) Installed
Python Extension/Interpreter Set
First Program Run Successfully

🔄 Practice Tasks

Modify hello.py to print your name:

print("Hello, Himanshu!")

Try multiple print statements:

print("Welcome to Python!") 

print("Let's start learning.")

Share: 

No comments yet! You be the first to comment.

Leave a Reply

Your email address will not be published. Required fields are marked *