The CSV (Comma Separated Values) format typically uses a comma to distinguish…
2026
The CSV (Comma Separated Values) format typically uses a comma to distinguish between data fields. When using functions like reader() or writer() to process a csv file, which parameter is used to specify a custom character (such as a semicolon or tab) to be used instead of the default comma as a separator?
- A.
split
- B.
partition
- C.
separator
- D.
delimiter
Attempted by 106 students.
Show answer & explanation
Correct answer: D
In Python’s csv module, the parameter used to specify a custom separator character (like ; or \t) is delimiter.
Example:csv.reader(file, delimiter=';')