I need to write the values in a two-dimensional list by sorting the values of other lists:
for i, snt in enumerate(text_list): for j, wrd in enumerate(dict): # print (i,j) matrix[i][j] = snt.count(wrd) Error: IndexError: list assignment index out of range
print (i,j) - executes with all index values as necessary