Welcome to the Python tutorial series on CodeTutHub! Today we'll guide you through the process of installing Python on your computer. This is the first essential step towards learning Python programming.
Step 1: Download Python
- Visit the official Python website at https://www.python.org/downloads/.
- Choose the latest stable version for your operating system (Windows, macOS, or Linux).
Step 2: Install Python
Windows
- Double-click the downloaded
.exefile. - Check the box that says "Add Python to PATH".
- Click on "Install Now".
- Wait for the installation process to complete and click "Close".
macOS
- Open the downloaded
.pkgfile. - Follow the installation wizard prompts, typically just clicking "Continue".
- Enter your admin password when prompted.
- Finish the installation.
Linux
For Debian/Ubuntu:
Open Terminal and run:
sudo apt update
sudo apt install python3 python3-pipFor Fedora:
sudo dnf install python3 python3-pipStep 3: Verify Installation
To confirm Python is installed correctly:
- Open Terminal (macOS/Linux) or Command Prompt (Windows).
- Type the following command:
python --versionor for Python 3 specifically:
python3 --versionYou should see the Python version displayed on your screen.
Step 4: Run your first Python script
Create a file named hello.py and type the following:
print("Hello, Python!")Run this file by executing:
python hello.pyYou should see:
Hello, Python!Conclusion
You have successfully installed Python and run your first Python program. You're now ready to dive deeper into Python programming. Stay tuned to our Python tutorial series at CodeTutHub.com!









