My new ebook “Comprehending Comprehensions” is on pre-sale and 40% off!

Mathspp Blog

A blog dedicated to mathematics and programming!

This blog has a really interesting assortment of articles on mathematics and programming. You can use the tags to your right to find topics that interest you, or you may want to have a look at

You should also subscribe to the blog newsletter.

Can you tile a chessboard with two missing squares?

Today I learned that the module contextlib provides with a context manager to suppress specified errors.

How many queens and knights can you place on a chessboard?

Let me tell you why it is impossible to truly master Python, but also show you how to get as close to it as possible.

This article is an in-depth analysis of Python solutions to the “Sonar Sweep” problem, which is day 1 of Advent of Code 2021.