I am stuck on a problem with no idea how to start.
I need to create a program that creates a file witha index that tells you which line of the file each word appears on.
i Have this so far but i may be way off.
Import
t = open(""),"r")
def findWord(aline):
wordDict = {}
for item in aline
if item in wordDict
wordDict [item] = wordDict[item] +1
return wordDict