Skip to content

Instantly share code, notes, and snippets.

View MiniMastermind's full-sized avatar

kdong026 MiniMastermind

View GitHub Profile
@MiniMastermind
MiniMastermind / letters-to-100.py
Last active May 10, 2024 23:45 — forked from peterjmag/letters-to-100.py
Find English words whose letter values add up to 100
#!/usr/bin/env python
# encoding: utf-8
"""
letters-to-100.py
"""
import string
letter_values = dict((l, i) for i, l in enumerate(string.lowercase, start=1))
english_dict = open('/usr/share/dict/words', 'rU')