title: Indexing error while trying to retrieve specific letter
body: <p>I am an accountant and a beginner to coding. I am trying to understand how indexing works.  I am trying to extract the second letter in a string.  </p>
  
  <pre><code>def myfuncs(words):
      for chars in words:
          b = chars[1]
          return b  
  </code></pre>
  
  <p>When <code>b = chars[0]</code> the first letter is being displayed. However when I change the value to any other number, <code>b = chars[1]</code> or <code>b = chars[2]</code>, I receive an error <em>"string index out of range"</em>. What is happening? How is the machine looking at my code?</p>