title: Giving a score to a randomly generated word
body: <p>I am trying to give a score to a randomly generated word based on how close it is "myname" (I only generated a word with three letters to make sure it works first). Since I have only generating words with three letters, if the random word is "myn" then the score is 3.. if the random word is "mym" the score is 2, if the random word is "mim" the score is one.. etc etc. Essentially the "closeness" of the random word is based on whether the random word generated is in the first three letters of "myname" Here is the code I have thus far.</p>
  
  <pre><code>def generate(x):
      word = "myname"
      alpha_1 = alpha[random.randint(0,21)]
      vowel_1 = vowels[random.randint(0,4)]
      alpha_2 = alpha[random.randint(0,21)]
      two = {}
      for x in range(1,7315):
          two.update({alpha_1 + vowel_1 + alpha_2:0})  
          return two
  
  generate(x)
  </code></pre>