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?

  1. A.

    split

  2. B.

    partition

  3. C.

    separator

  4. 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=';')

Explore the full course: Rssb Senior Computer Instructor