Skip to content

Instantly share code, notes, and snippets.

@Phoenixbotleroi
Phoenixbotleroi / letters-to-100.py
Created January 18, 2025 09:12 — 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')