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.

This article explains how to extend the JSON format by using a custom encoder and a custom decoder to turn arbitrary Python objects into JSON and back.

Today I finished learning how to use a custom JSON decoder to convert JSON to arbitrary Python objects.

Can you align all of the coins on the right edge of the board?

Today I learned how to do custom JSON decoding in Python with the module json.

Today I learned how to do custom JSON encoding in Python with the module json.