Learn how to use regular expressions in Python with the re module. Cover pattern matching, groups, and practical examples for validating and extracting text.
Tutorial series
Intermediate Python
10 tutorials — follow in order for the best learning path.
- Regular Expressions in Python
- 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.
- 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.
- 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
- 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.
- 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.
- 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
- Async Programming with asyncio
Learn asynchronous programming in Python with asyncio. Master async/await syntax, coroutines, tasks, and run concurrent operations efficiently.
- 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.
- Pattern Matching with match/case
Learn how to use Python's match statement for structural pattern matching, covering literals, sequences, classes, mappings, and guards