Answer:
Check the explanation
Step-by-step explanation:
Given below is the code for the question. PLEASE MAKE SURE INDENTATION IS EXACTLY AS SHOWN IN IMAGE.
import csv
def read_data(csv_r, keys):
data = []
for row in csv_r:
mydict = {}
for i in range(len(keys)):
mydict[keys[i]] = row[i]
data.append(mydict)
return data
SCREENSHOT: