Which argument avoids blank lines when writing CSV files on Windows in Python?
Correct answer
A. newline=''
5 views
A. newline=''
5 views
Opening the file with newline='' prevents extra blank rows.
Asked in: Python Interview Standard Library
https://docs.python.org/3/library/index.htmlNot sure why the answer is A? Ask here and get an explanation.