Last active
August 29, 2015 14:06
-
-
Save Echocage/a6450a4775b75cf3c81a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
calchar = ("o", "i", "z", "e", "h", "s", "g", "l", "b", "g") | |
wordlist = [] | |
with open("dictionary.txt") as f: | |
with open("newdict.txt", 'w') as output_file: | |
for line in f: | |
if all(c in calchar for c in line): | |
output_file.write(line) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment