In this section we will cover the basics of relations. A relation is essentially a set where every element is an ordered pair, called a key-value pair. From this we will cover a very importnat type of relation called a function.
In this practical we look at the python implementation of relations and function and how to use python to investigate their properties.
In this practical we will implement a number of small functions in python.