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.
Loading...
Related Quiz
- Which of the following is a recommended use case for custom context managers?
- Which function in Python is used to read file contents as a string?
- You need to filter out all even numbers from a list numbers and square them. Which Python feature would be the most concise to achieve this?
- Which special variable in Python represents the name of the current module?
- When a method is decorated with @staticmethod, it cannot access or modify _______ specific data.