@@ -0,0 +1,834 @@
+#!/usr/bin/env python3%0A# -*- encoding: utf-8 -*-%0A#%0A# Find anagrams.%0A#%0Aimport sys%0A%0Aif len(sys.argv) != 2:%0A    print(%22Usage: anagram.py input.txt%22)%0A    sys.exit(1)%0A%0A#%0A# Read the dictionary.%0A#%0Adict = %7B%7D%0Awith open(sys.argv%5B1%5D) as file:%0A    for line in file.readlines():%0A        if len(line) %3C 2 or line%5B0%5D == ' ' or line%5B0%5D == '#':%0A            continue%0A%0A        word = line.split()%5B0%5D%0A        #print(word)%0A        if '-' in word:%0A            continue%0A%0A        dict%5Bword%5D = word%0A%0A#%0A# Create a table of pairs.%0A#%0Atable = %7B%7D%0Afor word in dict:%0A    key = ''.join(sorted(word))%0A    #print(%22key =%22, key, %22, word =%22, word)%0A    if key in table:%0A        table%5Bkey%5D.append(word)%0A    else:%0A        table%5Bkey%5D = %5Bword%5D%0A#print(table)%0A%0A#%0A# Print the result.%0A#%0Afor key in table:%0A    item = table%5Bkey%5D%0A    if len(item) %3E 1:%0A        print(' - '.join(item))%0A

Add a script to find anagrams.