Skip to content

Instantly share code, notes, and snippets.

View edwardbattistini's full-sized avatar
😮‍💨

Edward Battistini edwardbattistini

😮‍💨
View GitHub Profile
@peterjmag
peterjmag / letters-to-100.py
Created September 20, 2012 02:46
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')