## How to Trace Python Algorithms with a Visualisation Tool

Understanding all the details of how an algorithm works can be challenging, and it is helpful to be able to perceive what is happening from multiple angles. One particularly useful tool to...

## Analysis of Algorithms with Python

The efficiency of algorithms is important. Imagine a program that took centuries to calculate the solution to a problem (like Deep Thought from the Hitchhiker’s Guide to the Galaxy), or needed more...

## TI-84 Python Edition Calculator – Product Review

I’ve been a big fan of the Texas Instruments TI-84 Graphic Calculator for many years. It is a marvellous tool for exploring mathematics and supports a programming language called TI-BASIC which enables...

## The Change Making Problem with Python

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 with Python

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...

## Morse Code with Python

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...

## Python Coding Challenge – Modulo Operator

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...

## Plotting Polynomials with Python

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...

## Python and The Baltimore Stockbroker

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...

## Ransom Note HackerRank Challenge in Python

Image courtesy of Sheila Sund from Salem, United States, CC BY 2.0, via Wikimedia Commons. This Python programming challenge is adapted from a challenge on HackerRank called Ransom Note, which is part...