DictReader
DictReader is a class provided by Python's built-in csv module. It offers a convenient way to read CSV files where each row is treated as a dictionary. Instead of accessing data by numerical index, you can access fields by their column header names, making code more readable and less prone to errors if the column order changes.
When you create a DictReader object, it automatically uses the first row of the CSV file as
To use DictReader, you typically open a CSV file and pass the file object to the DictReader