Skip to content

Instantly share code, notes, and snippets.

@Echocage
Last active August 29, 2015 14:06
Show Gist options
  • Save Echocage/a6450a4775b75cf3c81a to your computer and use it in GitHub Desktop.
Save Echocage/a6450a4775b75cf3c81a to your computer and use it in GitHub Desktop.
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