title: NameError: name 'word' is not defined
body: <p>I'm trying to make a mixWord function and I'm getting an error saying
  <code>NameError: name 'word' is not defined</code>
  What am I missing from here?</p>
  
  <pre><code>def mixWord(word):
      characterList = list(word);
      print characterList
      import random;
      random.shuffle(characterList);
      print characterList;
      shuffledWord = ''.join(characterList);
      print shuffledWord;
  </code></pre>
  
  <blockquote>
    <p>Traceback (most recent call last):</p>
    
    <p>File "", line 1, in </p>
    
    <p>mixWord (word)</p>
    
    <p>NameError: name 'word' is not defined</p>
  </blockquote>