Python

Anagrammer Finder

A function that takes returns anagrams based of a users string input

This program shows how to use a with as structure to use data inside a file.

This program will ask the user for a string input. It then opens a dictionary file and line by line checks if the string and dictionary word are a match. If there is a match the dictionary word is printed.

Example:

> python anagrammer.py

> This program asks for a single word and returns the words anagrams

> Enter a word: theta

> hatte and theta are anagrams

> hatte is on line 128411 of the file

> theat and theta are anagrams

> theat is on line 305820 of the file

> theta and theta are anagrams

> theta is on line 306673 of the file