Before you start learning Python, you need a place to write and run your code. This is called a development environment. Don’t worry—this sounds technical, but it’s just choosing the right tool and setting it up once.
In this section, we’ll walk through three popular and beginner-friendly tools:
Visual Studio Code (VS Code)
PyCharm
Jupyter Notebook
You do not need all three. Pick one to start—you can always try others later.
Step 1: Install Python (Required for All Tools)
Before anything else, you must install Python itself.
Install Python
Go to python.org
Click Downloads
Download the latest version for your operating system
During installation:
✅ Check “Add Python to PATH”
Click Install Now
Verify Python Installation (Command Line)
Open Command Prompt (Windows) or Terminal (Mac/Linux) and type:
python --version
You should see something like:
Python 3.12.1
If you see a version number, Python is installed correctly.
Option 1: Visual Studio Code (VS Code)
VS Code is a simple, fast editor that many beginners love because it grows with you.
Why VS Code Is Good for Beginners
Free and lightweight
Works for Python and many other languages
Easy to customize later
Install VS Code
Go to code.visualstudio.com
Download and install VS Code
Open VS Code
What you should see:
A clean window with a left sidebar showing icons like Explorer, Search, and Extensions.
Install the Python Extension
Click the Extensions icon (four squares on the left)
Search for Python
Install Python (by Microsoft)
What you should see:
A message saying “Python extension installed” and Python features enabled.
Run Your First Python File
Click File → New File
Save it as
hello.pyType:
print("Hello, Python!")
Right-click in the file and select Run Python File
🎉 You just ran your first Python program.
Option 2: PyCharm
PyCharm is a full Python IDE, meaning it gives you many tools automatically.
Why PyCharm Is Good for Beginners
Designed specifically for Python
Helps catch errors early
Manages projects for you
Install PyCharm
Go to jetbrains.com/pycharm
Download PyCharm Community (Free)
Install and open PyCharm
What you should see:
A welcome screen with options like New Project and Open.
Create a New Project
Click New Project
Make sure a Python interpreter is selected
Click Create
Run Your First Program
Right-click the project folder
Choose New → Python File
Name it
helloType:
print("Hello from PyCharm!")
Right-click the file → Run 'hello'
You’ll see the output at the bottom of the screen.
Option 3: Jupyter Notebook
Jupyter Notebook is great for learning, experimenting, and data analysis.
Why Jupyter Is Beginner-Friendly
Run code one piece at a time
See results instantly
Combine notes and code
Install Jupyter (Command Line)
Open Command Prompt or Terminal and run:
pip install notebook
Start Jupyter Notebook
Run:
jupyter notebook
What you should see:
Your web browser opens with a file dashboard.
Create a Notebook
Click New → Python 3
In the first cell, type:
print("Hello, Jupyter!")
Press Shift + Enter
The result appears immediately below the cell.