🔧 Step 1: Install Python (Windows)
✅ 1. Download Python
- Visit: https://www.python.org/downloads/
- Click Download Python 3.x.x (Latest Version)
✅ 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 --versionYou 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
- Visit: https://code.visualstudio.com/
- Download and 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
- Visit: https://www.jetbrains.com/pycharm/
- Download Community Edition (Free)
- Install and open PyCharm
- Create a new project and select interpreter as “Python 3.x”
🧪 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:
- Right-click in the editor → Click Run Python File in Terminal
- OR press
Ctrl + F5
🟦 In PyCharm:
- 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
| Task | Done ✅ |
|---|---|
| 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.")