[Solved] Creating vertical dictionary from text file
if index==3: indexes=line.split(“\t”) for index in indexes: Old_Values=Old_Values{[key]} # What here? As I understand it, what you want there is simply an empty list to put the corresponding elements from the subsequent lines in: Old_Values[index] = [] Which will give you: {‘WebAddress’: [], ‘Address’: [], ‘Surname’: [], ‘Name’: [], ‘Telephone’: []} I don’t know where … Read more