Lesson 1: Introduction to Python and Installation

Python basics, history, and how to install it on your system

What Is Python?

Python is a high-level, general-purpose programming language known for its clean syntax and readability. It is widely used in web development, data science, automation, AI, scripting, and more.

Created by Guido van Rossum and first released in 1991, Python emphasizes code readability and developer productivity.

Why Developers Use Python

Installing Python

Python runs on Windows, macOS, and Linux. The recommended way to install it is from the official website:

https://www.python.org/downloads/

Windows Installation

  1. Download the Windows installer from python.org.
  2. Run the installer.
  3. Important: Check “Add Python to PATH”.
  4. Click “Install Now”.

macOS Installation

  1. Download the macOS installer from python.org.
  2. Open the .pkg file and follow the installation steps.
  3. Python will be available via the Terminal.

Linux Installation

Most Linux distributions include Python by default. To install or update:

# Debian/Ubuntu
sudo apt update
sudo apt install python3

# Fedora
sudo dnf install python3

# Arch
sudo pacman -S python

Verifying Your Installation

Open your terminal or command prompt and run:

python --version
# or
python3 --version

Your First Python Command

Try running Python interactively:

python

Then type:

print("Hello, Python!")

Next Steps

Now that Python is installed, you’re ready to learn the basics of syntax and running scripts in Lesson 2: Working with Strings.

← Back to Lesson Index