I\'m trying to create this script that will check the computer host name then search a master list for the value to return a corresponding value in the csv file. Then open a
I would populate a dictionary like this:
>>> import csv >>> name_to_UID = {} >>> for row in csv.DictReader(open(filename, 'rU'), delimiter='\t'): name_to_UID[row['Name']] = row['UID'] >>> name_to_UID['Carmen-Jackson.local'] 'carmenj'