## Prime Numbers in Python

In this article we are going to look a some different ways to check whether a number is prime using Python. As well as being an interesting and useful exercise, this exploration...

Computer programming and Mathematics are deeply connected. Develop your understanding of both subjects by making connections between them.

In this article we are going to look a some different ways to check whether a number is prime using Python. As well as being an interesting and useful exercise, this exploration...

Writing robust code is always a good idea, but is particularly important for mission critical contexts, such as where safety is an issue. There are several historical examples of where faulty code...

This post explores some different ways of generating the famous Triangle Numbers with Python. Before reading on, have a go a writing some Python code to print out the first 10 Triangle...

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

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

© 2019 Compucademy™ All Rights Reserved. Terms and Conditions