When using the csv module to read a file, which object allows you to access…

NVS TGT/PGT 2026

When using the csv module to read a file, which object allows you to access each row of the CSV file as a dictionary, where the keys are the column headers?

  1. A.

    csv.reader()

  2. B.

    csv.DictReader()

  3. C.

    csv.writer()

  4. D.

    csv.ListReader()

Attempted by 440 students.

Sign up free to check your answer

Sign up free

Explore the full course: Hpsc Pgt Computer Science

Loading lesson…