Pi

Pi, or $\pi$, is commonly used in the context of circles in geometry. In particular, the circumference $C$ of a circle that has a diameter $d$ is $C = \pi d$. Also, the…

Read more

Prime Number

What is a prime number? A prime number cannot be divided by another number, with the exception of the number 1 and the number itself. Some prime numbers are 2, 3, 5, 7,…

Read more

Pythagoras Theorem

What is the Pythagoras theorem? It is $ a^2 + b^2 = c^2$. Here, $a$, $b$ and $c$ are the lengths of a right triangle. Note that $c$ is the hypotenuse of the…

Read more

Bubble Sort Algorithm in Python

In this post, I provide a code that performs a bubble sort in python. Before using, I recommend checking the indentations, as this code was written in a standard text-editor. This python bubble-sort algorithm…

Read more