The change making problem has become something of a classic due to what it can show us about different approaches to algorithmic problem solving. In this article we will look at the...
The Collatz Conjecture is an unsolved problem in Mathematics which lends itself nicely to exploration with Python. The idea is simple: Pick a positive whole number. If it’s odd, multiply it by...
This post is about a fun puzzle called the number placement puzzle. I have provided an interactive console program that lets you explore it. I have also provided a couple of algorithms...
In this article we will learn how to use Python programming to convert messages from English to Morse Code and vice versa. We will also learn how to play the Morse Code...
In this article we are going to look at how to create Venn Diagrams with Python. Venn Diagrams are a great invention and are a really handy way to reason about sets....
In this Python coding challenge your goal is to implement the modulo operator (%) for yourself, without using division or the % operator itself. We’ll only consider positive integers here, although by...
I’ve been enjoying reading A Programmer’s Introduction to Mathematics by Jeremy Kun recently. After the introduction, the first main topic it covers is a neat trick for sharing secrets (encrypting messages) so...
In this post we are going to use Python to explore the story of the Baltimore Stockbroker. If you were in the fortunate position to have some money to invest and you...
In this article we are going to explore how to use Python to solve quadratic equations and display the graphs of quadratic functions. Many years ago I used to use TI-84 graphing...
In this article we are going to learn how to do some basic sentiment analysis with Python, using a wordlist-based approach and the afinn package. First, you will need to install the...