Create a variable to store the file object. Call the open() method with the file name and ‘w’ mode as arguments. Use the write() method on the variable to write anything. Close the file using the ...
Thomas Copeland BBC Verify Live journalist. BBC Verify Live will be closing shortly here’s a catch-up on what we’ve been covering. We’ve spent much of today pulling together ...