Python Memoization

Improving the efficiency of Python Programs Using Memoization Some of you may be familiar with the Fibonacci sequence, which is famous in both mathematics and computer programming. The sequence is formed by...

Classic Snake Game with Python

This article will show you how to code the classic Snake Game with Python. Stop press! I now have an in depth video course on building the Classic Snake Game available on...

We Need to Talk About Pseudocode

Pseudocode for Computer Science GCSE and A Level Pseudocode for Computer Science GCSE and A Level is supposed to provide a way of describing algorithms which is simple, clear, unambiguous and language-agnostic....

Generating Random Graphs in Python

Random Graphs in Python for A Level Computer Science and Beyond The jupyter notebook below shows an implementation of an algorithm for generating a random undirected, unweighted graph. The algorithm uses the...

Python Nested FOR Loops

Why do I Need Nested Loops in Python? Nested loops are a very important concept in Python programming and Computer Science, are used in many algorithms. For example sorting algorithms such as...