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...
In this lesson we are going to learn how to draw circles with Python Turtle Graphics. We will then modify the default circle method so that we can centre our circles at...
In this article we are going to use Python to test whether a coin is fair. We will do this by making use of the statsmodels package to perform a hypothesis test....
Here’s a useful tip for finding the size of a pandas dataframe. It can get a little confusing as len and size usually give different answers. size gives the total number of...
In this post we are going to explore conditional probability with Python. Here’s a fun and potentially tricksome question about probabilities: In a family with two children, what is the probability that,...