## TRIANGLE NUMBERS WITH PYTHON

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

## Colourful Formatted Tables in Python

This post is written for readers with different levels of experience with Python programming and also with Mathematics. Depending on your experience and interest, you will get different things from reading it....

## Fun with Fractals – Python Turtle Graphics

One of the great things about Python Turtle Graphics is how it gives you instant visual feedback on what you program is doing. This makes it a very powerful tool for exploring...

## Python Coding Challenge – Sum of Squares

Here’ a fun Python challenge involving just a bit of mathematical know-how: Write a function that takes an argument n and prints a pair of natural numbers x, y such that x²...

## The Babylonian Square Root Algorithm in Python

Developing your algorithmic thinking skills is a great idea whatever your programming goals are. As well as making you a much better programmer, you will also need to develop theses skills if...

## Exploring Random Walks with Python Turtle Graphics

In this post we will be looking at an idea from mathematics called a random walk. In a random walk, each step in a process is determined randomly and we are interested...

## Pascal’s Triangle with Python

Coding Pascal’s Triangle with Python is a fun intermediate-level challenge. Pascal’s Triangle is a fascinating mathematical structure which contains many patterns. Each element in a row is formed by adding the two...

## Calculating Distance with Python

Play Treasure Island by Clicking Here I am very keen to help people connections between Maths and Computer Science. Above is a game I wrote using JavaScript. When you click on an...

## The TI-84 Graphic Calculator

This picture is of the Texas Instruments TI-84 Calculator which I make a lot of use of in my teaching. It’s great for giving students dynamic representations of the concepts they are...

## Python Circle Sector Challenge

Maths and Computer Science are often taught very separately, and yet they make excellent companions. Writing a program to explore a topic from Maths can really help to understand the topic deeply...