Python
Python installation, virtual environments, package tools, and scripting workflows on Linux.
How to Install pip on Debian 11, 12, and 13
Step-by-step instructions for installing pip3 on Debian 11, 12, and 13 using apt, with examples for installing, upgrading, and removing Python packages.

pip vs apt: Installing Python Packages on Linux
This guide explains when to use pip or apt for Python packages on Ubuntu and Debian, why sudo pip install is risky, and where virtual environments fit.

How to Install Python Pip on Ubuntu
Install pip on Ubuntu with a single apt command. Covers python3-pip setup, virtual environments, and common pip commands for managing Python packages.

Python Tuples: Create, Access, Slice, and Unpack
Work with Python tuples: how to create, access, slice, unpack, and loop over them, plus how tuples differ from lists and when to use each.

How to Install and Use uv: Fast Python Package Manager
uv is a fast Python package and project manager written in Rust. This guide covers installation on Linux, creating projects, adding dependencies, managing virtual environments, and installing Python versions with uv.

How to Install Python on Ubuntu 26.04
Install Python on Ubuntu 26.04 using the default Ubuntu packages, the deadsnakes PPA for alternate versions, or a source build. Includes pip and virtual environments.

How to Install Python on Ubuntu 24.04
Install Python on Ubuntu 24.04 using the default Ubuntu packages, the deadsnakes PPA for newer versions, or a source build. Includes pip and virtual environments.

Python venv: How to Create and Use Virtual Environments
Python's venv module creates isolated environments so each project can pin its own package versions. This guide covers python -m venv, activating and deactivating, managing dependencies with requirements.txt, and when to reach for virtualenv, uv, or pipx instead.

How to Convert Strings to Integers in Python
Convert strings to integers in Python with int(), handle invalid input, remove separators, and parse binary, octal, and hexadecimal values.

How to Run a Python Script in Linux
Running a Python script in Linux usually means using `python3 script.py` or making the file executable with a shebang. This guide covers both methods, passing arguments, running modules, and common errors.

Python if, elif, and else Statements
Learn how to use Python if, elif, and else statements to control program flow, test conditions, and handle multiple branches with practical examples.

Python f-Strings: String Formatting in Python 3
Python f-strings (formatted string literals) let you embed expressions directly inside strings. This guide covers basic usage, expressions, format specifiers, alignment, number formatting, and the debugging shorthand.

How to Check Python Version
How to check the Python version installed on Linux, macOS, or Windows using the command line, and how to check the version programmatically from within a Python script.

How to Get and Change the Current Working Directory in Python
Use os.getcwd() to get the current working directory in Python, and os.chdir(path) to change it. This guide covers both the os and pathlib approaches with examples.

Python Switch Case Statement (match-case)
Learn how to use Python's match-case statement (structural pattern matching) as a switch-case equivalent. Covers if-elif-else, dictionary lookup, and match-case with examples.

Python Dictionary: How to Create, Access, and Modify
Learn how to use Python dictionaries to store key-value data. Covers creating, accessing, updating, and iterating with examples.

Python Syntax
This guide provides a comprehensive introduction to Python syntax, including its definition and key elements that help make your code more efficient.



