Best matches for a partially specified word in Python
<p>I have a file dict.txt that has all words in the English language.</p>

<p>The user will input their word:</p>

<p><code>x = raw_input("Enter partial word: ")</code></p>

<p>Example inputs would be: r-n, --n, -u-, he--o, h-llo and so on, unknown characters would be specified by a underscore preferably instead of (-).</p>

<p>I want the program to come up with a list, of all the best matches that are found in the dictionary.</p>

<p>Example: If partial word was r--, the list would contain run, ran, rat, rob and so on.</p>

<p>Is there any way to do this using for loops?</p>
