Tutorials

Step-by-step series to learn Python from scratch.

Intermediate Python

2

Regular Expressions in Python

Learn how to use regular expressions in Python with the re module. Cover pattern matching, groups, and practical examples for validating and extracting text.

15 min read · intermediate
3

Working with Dates and Times

Learn how to handle dates and times in Python using the datetime module. Covers datetime, date, time, timedelta, timezones, and practical examples.

10 min read · intermediate
4

Debugging Python with pdb

Learn how to use Python's built-in pdb debugger to find and fix bugs. Covers setting breakpoints, stepping through code, and inspecting variables.

15 min read · intermediate
5

Testing Your Code with pytest

Learn how to write and run tests in Python using the pytest framework. Covers test functions, assertions, fixtures, parametrization, mocking, and best practices

12 min read · intermediate
6

Type Hints and Static Analysis with mypy

Learn how to use type hints and mypy to catch bugs before runtime. This tutorial covers adding type annotations, running mypy, and fixing common type errors.

15 min read · intermediate
7

Concurrency with threading

Learn how to use Python's threading module to run multiple tasks concurrently. Covers creating threads, locks, and when to use threading vs multiprocessing.

14 min read · intermediate
8

Parallelism with multiprocessing

Learn how to use Python's multiprocessing module to run code in parallel using multiple processes, bypassing the GIL for CPU-bound tasks

15 min read · intermediate
9

Async Programming with asyncio

Learn asynchronous programming in Python with asyncio. Master async/await syntax, coroutines, tasks, and run concurrent operations efficiently.

15 min read · intermediate
10

Packaging and Publishing a Python Library

Learn how to package your Python code and publish it to PyPI so others can install it with pip.

15 min read · intermediate
15

Pattern Matching with match/case

Learn how to use Python's match statement for structural pattern matching, covering literals, sequences, classes, mappings, and guards

12 min read · intermediate

Python and Data

Python Automation

Python DevOps

Python for Finance

Python Fundamentals

1

Installing Python on Your Computer

Learn how to download and install Python on Windows, macOS, and Linux, verify your installation, and launch the interactive REPL.

5 min read · beginner
2

Getting Started with Python

Write and run your first Python script, use the interactive REPL, and learn about print(), comments, strings, and numbers.

5 min read · beginner
3

Python Basics: Variables, Types, and Operators

Understand Python variables, naming conventions, core data types (int, float, str, bool), arithmetic and comparison operators, and f-strings.

6 min read · beginner
4

Control Flow: if, for, and while in Python

Learn how to make decisions with if/elif/else, iterate with for and while loops, and control loop execution with break and continue.

6 min read · beginner
5

Writing Functions in Python

Learn how to write functions in Python — the building blocks of reusable code. Master def, parameters, return values, and best practices.

10 min read · beginner
6

Lists, Tuples, and Dictionaries

Master Python's core data structures—lists, tuples, and dictionaries—and learn when to use each one for effective programming.

12 min read · beginner
7

Modules and Imports

Learn how to organize your Python code into modules and packages, master the import system, and leverage the powerful standard library.

10 min read · beginner
8

Classes and Objects

Learn object-oriented programming in Python with classes and objects. Create your own types, define methods, and build reusable components.

15 min read · beginner
9

Reading and Writing Files in Python

Learn how to read from and write to files in Python using built-in functions and pathlib. Covers text and binary files, context managers, and common patterns.

10 min read · beginner
10

Handling Errors and Exceptions

Learn how to handle errors and exceptions in Python using try, except, else, and finally. Includes raising exceptions and best practices.

10 min read · beginner
11

List, Dict, and Set Comprehensions

Learn how to use list, dict, and set comprehensions in Python. Covers basic syntax, filtering, and nested loops.

12 min read · beginner
12

*args and **kwargs Explained

Learn how to use *args and **kwargs in Python to write flexible functions that accept any number of positional and keyword arguments.

10 min read · beginner
12

How to Join a List into a String in Python

Learn how to convert a list to a string in Python using str.join() with practical examples for different data types and separators.

5 min read · beginner
13

String Formatting with f-strings in Python

Learn how to use f-strings to embed variables and expressions inside strings, format numbers with precision, and compare with other formatting methods

10 min read · beginner
14

Recursion in Python

Learn how to write recursive functions in Python, understand base cases and recursive cases, and see practical examples like factorial and Fibonacci.

10 min read · beginner

Python Output and Reporting

python-automation

python-tooling

python-web-development

scientific-python