Getting Started with Python
Your journey to becoming a Python developer starts here
Python is powerful, easy to learn, and runs everywhere. Whether you're interested in web development, data science, automation, or just want to learn programming, Python is an excellent choice.
Step 1: Install Python
Installing Python on Windows
-
1
Download Python
Visit the downloads page and download the latest Python installer for Windows.
Make sure to check "Add Python to PATH" during installation! -
2
Run the installer
Double-click the downloaded file and follow the installation wizard. Choose "Install Now" for a quick setup with default options.
-
3
Verify installation
Open Command Prompt and type:
python --version
Installing Python on macOS
-
1
Download Python
Visit the downloads page and download the latest Python installer for macOS.
-
2
Install via Homebrew (Recommended)
If you have Homebrew installed, you can install Python with:
brew install python@3Or use the downloaded .pkg file and follow the installer.
-
3
Verify installation
Open Terminal and type:
python3 --version
Installing Python on Linux
-
1
Check if Python is installed
Most Linux distributions come with Python pre-installed. Check with:
python3 --version -
2
Install via package manager
Ubuntu/Debian:
sudo apt update sudo apt install python3 python3-pipFedora:
sudo dnf install python3 python3-pip -
3
Verify installation
python3 --version pip3 --version
Step 2: Write Your First Program
Hello, World!
Create a new file called hello.py and add this code:
print("Hello, World!")
print("Welcome to Python!")
Run it from the command line:
python hello.py
Try the Interactive Shell
Python includes an interactive shell where you can try code immediately. Just type python
or python3 in your terminal:
>>> print("Hello from the Python shell!")
Hello from the Python shell!
>>> 2 + 2
4
>>> name = "Python"
>>> f"I love {name}!"
'I love Python!'
Type exit() or press Ctrl+D to leave the shell.
Step 3: Choose Your IDE
VS Code
Free, lightweight, and packed with features. Excellent Python extension available.
Download VS Code →PyCharm
Full-featured IDE designed specifically for Python. Community Edition is free.
Download PyCharm →Jupyter Notebook
Interactive notebooks perfect for data science, analysis, and learning.
Get Jupyter →IDLE
Simple editor that comes with Python. Great for quick scripts and learning.
Sublime Text
Fast text editor with Python support through packages.
Download Sublime Text →Next Steps
Learn the Basics
Work through the official Python tutorial to learn variables, functions, data structures, and more.
Start TutorialExplore Packages
Discover thousands of packages on PyPI for web development, data science, automation, and more.
Browse PyPIJoin the Community
Connect with other Python developers through forums, user groups, and events.
Explore CommunityGet Help
Access documentation, FAQs, forums, and IRC channels for support when you need it.
Get HelpReady to Start Coding?
Python is waiting for you. Download it today and start building amazing things.