Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for line in file:
- counter = 0
- line = line.strip().split(" ")
- dict={}
- #print(line)
- for word in line:
- word = word.strip(" ")
- #print(word)
- words = word.lower()
- print(words)
- #
- #for each in words:
- #counter = 0
- comparator = words
- #if comparator in words:
- for word in words:
- counter += 1
- print(counter)
- print(comparator)
- dict = {counter:comparator}
- print(dict)
- return dict
- """
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement