Guest User

Untitled

a guest
Nov 22nd, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. from itertools import izip
  2. with open("formatted_words.txt") as words_file:
  3. with open("dictionary.txt") as dict_file:
  4. all_strings = list(map(str.strip,dict_file))
  5. for word in words_file:
  6. for a_string in all_strings:
  7. if word in a_string:
  8. print a_string
Add Comment
Please, Sign In to add comment