Advertisement
dvdjaco

9.1

Feb 18th, 2012
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.16 KB | None | 0 0
  1. # #!/usr/bin/python
  2. #
  3. # By dvdjaco
  4. # Exercise 9.1
  5. #
  6.  
  7. f = open("words.txt")
  8.  
  9. d_words = dict()
  10.  
  11. for word in f:
  12.         d_words[word.rstrip()] = 1
  13.        
  14. print d_words
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement