Help with dictionary
https://code.sololearn.com/ca7A22a24a25 dont worry that it doesnt line up in the code I already figured how to format it out...but my question is this as you can see I was able to get each word to print on a new line and have its frequency appended to it my problem is that I also need to append the line that it appears on after that so here is an example below WORD INFO ---------------------------------------------------- WORD FREQUENCY LINES ---------------------------------------------------- We 1 1 ### right here i need the line numbers that a 2 1 2 ###words occur on appended I'm only just an 1 3 as 4 4 5 ###<< as occurs twice on line 4 and 5 but ### dont want it to repeat like 4 4 5 5