The Python programming language, tutorials, and more

323 399,666 38,475
articles words lines of code
Image

Cheatsheet with visual diagrams that explain how the iterables from itertools work.

Image

Improve the capabilities of your agent by providing it with better tools.

Image

Learn how to write a coding agent in this Python tutorial that teaches how to interact with an LLM through an API, how to manage the conversation context, and how to do tool calling.

Image

Today I learned Python 3.15 will get a new sentinel built-in.

Image

Learn how to work around the Python machinery to resolve an explicit lazy import manually.

Image

In this article I share my personal highlights of PyCon Lithuania 2026.

Image

Play this short quiz to test your Python knowledge!

Image

This article shares two skills you can add to your coding agents so they use uv workflows.

Image

Learn how objects are automatically iterable if you implement integer indexing.

Image

This article covers a useful LLM pattern where you ask the LLM to write code to solve a problem instead of asking it to solve the problem directly.

Image

Today I learned how to inspect a lazy import object in Python 3.15.

Image

Today I learned how to install jupyter properly while using uv to manage tools.

Image

Today I learned how to do multiline input in the REPL using an uncommon combination of arguments for the built-in open.

Image

Learn how to remove extra spaces from a string using regex, string splitting, a fixed point, and itertools.groupby.

Image

Learn how to use structural pattern matching (the match statement) to work recursively through tree-like structures.

Image

In this article you will learn about itertools.pairwise, how to use it, and how to generalise it.

Image

Learn how to implement and use the floodfill algorithm in Python.

Image

A high-level overview of how to use the module compression, new in Python 3.14.

Image

A generator, duck typing, and a branchless conditional walk into a bar.

Image

Today I learned how to build the Python documentation to preview changes I wanted to make.