OCR GCSE (9-1) Computer Science Scratch Explanation …

As I am on a Windows PC I define it as UTF-8. In this example we open a file called Ni.txt which doesn’t exist so Python creates is open opens it in the write mode and then adds a string and then closes it. Here we open the same file in append mode and then append another string and close it. ................
................