Python code for FEEG1001 Applied Computing Semester 2 (University of Southampton)