From Session 5 of the NCCE Remote Learning Course CP455 ‘Primary Programming and Algorithms’. Sample code from a ‘Prediction’ task in the session.