Skip to content

Instantly share code, notes, and snippets.

View grahambinns's full-sized avatar

Graham Binns grahambinns

View GitHub Profile
"""A script to find the longest word with all letters in alphabetical order."""
import sys
import string
DICTIONARY = "/usr/share/dict/british-english"
LETTERS = string.lowercase
def len_letters(word):
"""Return the length of a word counting only its letters.