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