Advertisement
Guest User

Untitled

a guest
Feb 13th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1.  
  2. for line in file:
  3. counter = 0
  4. line = line.strip().split(" ")
  5. dict={}
  6. #print(line)
  7. for word in line:
  8. word = word.strip(" ")
  9. #print(word)
  10. words = word.lower()
  11. print(words)
  12. #
  13. #for each in words:
  14. #counter = 0
  15. comparator = words
  16.  
  17. #if comparator in words:
  18. for word in words:
  19. counter += 1
  20. print(counter)
  21. print(comparator)
  22. dict = {counter:comparator}
  23. print(dict)
  24. return dict
  25. """
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement