So Kasim, whom I believe to be an OCR GCSE CS teacher recently posted the code below on Facebook, reporting an error and seeking help.
I, like others, managed to run the code fine and assume the error was due to some funky Idle caching problem or some such. But