mathspp blog

433 468,841 38,850
articles words lines of code

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

Today I learned how to set the configurations of my Jupyter Book to build my book in the EPUB format.

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

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

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

This article serves as a complete reference for all the non-trivial things you should know about Python functions.

Today I learned how to use the equals sign to align numbers when doing string formatting in Python.

Today I learned about the shoelace formula to compute the area of arbitrary simple polygons.

Today I learned about the double factorial.

Cheatsheet with the most common and useful uv commands to manage projects and dependencies, publish projects, manage tools, and more.

Today I learned you can change the casing of matched groups when doing a search & replace in VS Code with regex.

I am truly honoured to have been awarded a PSF Community Service Award in Q2 of 2025.

Learn how to use functools.Placeholder, new in Python 3.14, with real-life examples.

Today I learned you can format your Python code directly with uv.

Today I learned you can specify a custom value when using the class method dict.fromkeys.

In this article I share my personal highlights of the 2025 edition of the EuroPython conference in Prague, Czech Republic.

The PyCon Portugal 2025 programme appears to be dominated by a mafia of a few speakers... Let me explain!

Today I learned how to use \b and \B to match prefixes and suffixes with regex.

Today I learned that you can dynamically change the type of an object in Python.

Today I learned about a Python Easter Egg hidden in the hash of two special float values.