title: python 'string index out of range' error
body: <p>I'm trying to code a word scrambler but when I try to append letters from my word, using index, I get the error 'String index out of range'. I have tried this without the 'input' but once I added it in I started getting problems.
  my code is:</p>
  
  <pre><code>a = input('word -&gt;')
  b = []
  count = 0
  while count &lt; 5:
      b.append(a[count])
      count +=1
  print(b)
  </code></pre>
  
  <p>it would be great if someone could help. thanks</p>