Python Tutorials – Learn Python from Basics to Advanced

Python is one of the most readable and widely used programming languages. These guides cover the full range: setting up your environment, writing your first scripts, working with data structures, handling files, and reaching for libraries when you need more. Each article focuses on one task and shows you how to do it correctly.


Setup & Environment

Before you write any Python, you need it installed and configured. These guides walk through installation on different systems, keeping it up to date, and making sure your terminal can find it.


Virtual Environments & Packages

Keeping dependencies isolated is good practice from the start. These guides cover creating and activating virtual environments, installing packages, and organizing imports across larger projects.


The Basics

The building blocks every Python script uses: output, comments, variables, string interpolation, and error handling.


Functions & Classes

Reusable code starts here. These guides cover defining and calling functions, working with anonymous functions, and structuring code with classes and objects.


Control Flow

How your program decides what to do and when to stop. These guides cover conditionals, loops, iteration helpers, and exception handling.


Strings

Python has a rich set of string methods. These guides cover the operations you'll use most — slicing, searching, transforming, and cleaning up text.


Type Conversion

Moving data between types is something Python scripts do constantly. These guides cover the most common conversions and where they tend to go wrong.


Numbers & Math

From basic arithmetic to rounding and random numbers, these guides cover how Python handles numeric operations.


Lists & Arrays

Lists are the most-used data structure in Python. These guides cover creating them, modifying them, querying them, and applying functions across them.


Dictionaries & Sets

Dictionaries store data as key-value pairs, and sets store unique values. These guides cover creating, accessing, modifying, and iterating over both.


Files

Reading and writing files is a core Python skill. These guides cover plain text, CSV, JSON, and Excel files, plus checking for file existence and cleaning up when you're done.


Data & Visualization

Python's data ecosystem is one of its biggest strengths. These guides introduce the core libraries for working with tabular data and building charts.


Tools & Libraries

Going further with Python means reaching for specialized libraries. These guides cover web scraping, browser automation, computer vision, working with APIs, GUIs, dates, regex, and testing tools.