1def list_of_lists_to_dictionary(list_of_list, key_col=0, val_col=1):
2
3 # Create empty dictionary
4 value_dict = {}
5
6 # Iterate through list and add to dictionary
7 for value in list_of_list:
8 v = {value[key_col]: value[val_col]}
9 value_dict.update(v)
10
11 return value_dict
12
1case_list = []
2for entry in entries_list:
3 case = {'key1': entry[0], 'key2': entry[1], 'key3':entry[2] }
4 case_list.append(case)
5