Question: Click Submit to complete this assessment. Question 10 Given the following Python code: import csv csvFile = open('userpass.csv', 'W') writer = csv.writer(csvFile) writer.writerow(['User', 'Password']) writer.writerow(
Click Submit to complete this assessment. Question 10 Given the following Python code: import csv csvFile = open('userpass.csv', 'W') writer = csv.writer(csvFile) writer.writerow(['User', 'Password']) writer.writerow( ['Ahmed', 'myp4sswd']) writer.writerow(['Salem', '5413m123']) Write an alternative code using the writerows method of csv.writer class. (4 marks) TT T Arial 3 (12pt) T.5
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
