Which method out of the following is used to write a line of content in a CSV file in a Phython program?
Show answerHide answer
Correct answer: (B) Writerow
Explanation
The csv writer object's writerow() method writes one row (line) to a CSV file. writerows() writes several rows.