This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""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. |