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.

Today I learned how to edit multiple lines in the VS Code code editor.

How do you create a Python package? How do you set up automated testing and code coverage? How do you publish the package? That's what this article teaches you.

This is the written version of my EuroPython 2022 lightning talk “Smoosh all the things”.

This is the most obfuscated “Hello, world!” program I have ever seen!

In this article we go over the most obscure “Hello, world!” Python program I have ever seen.

Learn about the dunder method __init__, responsible for initialising class instances.

This is an introduction to dunder methods in Python, to help you understand what they are and what they are for.