COMP1 - Programming Techniques #1 - writing to a .csv file
A video discussing content to meet the "know how to use an external text file to read and write data in a way that is appropriate for the programming language(s) used and the problem being solved" criterion of the COMP1 controlled assessment 'Practical Programming Project' syllabus. Importing the Python csv library and using its .writerow() method to export data to a file that can be read by a spreadsheet application. The example program featured looks at how a loop can be used to iterate of a list of usernames, generate a random password for each person and then output these credentials to the .csv file.
A video discussing content to meet the "know how to use an external text file to read and write data in a way that is appropriate for the programming language(s) used and the problem being solved" criterion of the COMP1 controlled assessment 'Practical Programming Project' syllabus. Importing the Python csv library and using its .writerow() method to export data to a file that can be read by a spreadsheet application. The example program featured looks at how a loop can be used to iterate of a list of usernames, generate a random password for each person and then output these credentials to the .csv file.