python print dictionary to csv code example
Example 1: python create dictionary from csv
mydict = {y[0]: y[1] for y in [x.split(",") for x in open('file.csv').read().split('\n') if x]}
Example 2: how to create dictionary in python from csv
input_file = csv.DictReader(open("coors.csv"))