Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from itertools import izip
- with open("formatted_words.txt") as words_file:
- with open("dictionary.txt") as dict_file:
- all_strings = list(map(str.strip,dict_file))
- for word in words_file:
- for a_string in all_strings:
- if word in a_string:
- print a_string
Add Comment
Please, Sign In to add comment