Jumble Solver

The purpose of this assignment was to write a program, using the Python programming language, which was capable of taking as input any scrambled word and producing as output a list of all possible unscrambled words according to a dictionary document. The output would also produce a string of text documenting how many unscrambled words were found out of the total number of words in the dictionary document.

The IO looks like the following (python3  program_name  scrambled_word  dictionary_document):

$ python3 jumbler.py trsesi dict.txt
resist
sister
2 matches from 41238 words

A link to the final code: jumbler.py  dict.txt

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s