The csv module's _______ class can be used to read rows from a CSV file as dictionaries.

  • csv.DictFile
  • csv.DictReader
  • csv.Dictionary
  • csv.Reader
The csv module's csv.DictReader class can be used to read rows from a CSV file as dictionaries, where keys are based on the header row, making it easy to work with structured CSV data.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *