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

which encoding to use. 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. ................
................