Skip to content
Codeloom

← Back to Python overview

Python tutorials

87 articles · page 2 of 5

Hand-written tutorials, ordered as a recommended learning path.

  1. 21 Modules & Imports A practical guide to Python modules and imports — writing your own modules, import forms, packages, the if __name__ == '__main__' idiom, and avoiding common pitfalls.
  2. 22 Classes & Objects A practical introduction to Python classes — defining a class, __init__ and self, instance vs class attributes, methods, __repr__, and a first look at inheritance.
  3. 23 Lambda Functions A practical guide to Python lambda functions — syntax, use with sorted, map, and filter, common patterns, and the situations where a named def is the clearer choice.
  4. 24 Generators A practical guide to Python iterators and generators — the iterator protocol, yield, generator expressions, memory benefits, and how to model infinite sequences.
  5. 25 venv & uv Isolate your Python projects the right way — using the built-in venv module, the new uv tool, and a clear mental model for when to use pipx instead.
  6. 26 Packages & pip Install, pin, and publish — a practical tour of pip, PEP 621 pyproject.toml, and building a tiny library you can share on TestPyPI.
  7. 27 Concurrency Comparison Compare Python's concurrency models side by side. Learn when to use asyncio, threading, or multiprocessing with practical benchmarks and real-world examples.
  8. 28 Environment Management Master Python environment management with venv for virtual environments, pyenv for version switching, and Poetry for dependency management.
  9. 29 Match Statement Master Python's match statement with structural pattern matching. Learn literal, sequence, mapping, class, guard, and OR patterns with practical examples.
  10. 30 Pydantic v2 Learn Pydantic v2 for data validation, serialization, and settings management in Python. Covers models, validators, computed fields, and BaseSettings.
  11. 31 pytest Guide Master pytest from fixtures and parametrize to marks, plugins, and CI integration. Write fast, maintainable Python tests with practical examples.
  12. 32 Type Narrowing & Overloads Master Python type narrowing with isinstance, TypeGuard, TypeIs, and use @overload to write precise function signatures that type checkers understand.
  13. 33 Python vs Go A practical comparison of Python and Go covering performance, concurrency, type systems, ecosystem, and when each language is the right choice for your project.
  14. 34 Walrus Operator := Learn the Python walrus operator (:= assignment expression) with practical examples for loops, comprehensions, conditionals, and when to avoid it.
  15. 35 Web Scraping Learn Python web scraping with BeautifulSoup for simple pages, Scrapy for large crawls, and Playwright for JavaScript-rendered content.
  16. 36 FastAPI vs Django vs Flask Compare FastAPI, Django, and Flask for Python web development. Understand performance, features, and ecosystem differences to choose the right framework.
  17. 37 CLI Tools Compare Python's top CLI frameworks. Build command-line tools with argparse, Click, and Typer, with examples for arguments, options, subcommands, and validation.
  18. 38 Descriptors Protocol Learn how Python descriptors work under the hood, powering properties, class methods, and custom attribute access with __get__, __set__, and __delete__.
  19. 39 functools Guide Master Python's functools module with practical examples of partial, lru_cache, reduce, singledispatch, cached_property, and wraps.
  20. 40 Dynamic Imports Master Python's importlib module for dynamic imports, plugin systems, lazy loading, and runtime module discovery with practical examples.