Exam tip 1
In Paper 4, you will almost certainly be asked to read from or write to a text file. Marks are often awarded for robust solutions. This means anticipating errors! Always consider what could go wrong: What if the file isn't there? What if the data is in the wrong format? Add try...except blocks to handle these cases, even if the question doesn't explicitly ask for it. It demonstrates good practice and can earn you marks for robustness.