title: Why is my code throwing an out of index error
body: <p>I'm making a thing that will check through a series of arrays (effectively a matrix) with letters in them and check if that letter is within another smaller array to make a mega wordsearch sort of thing</p>
  <p><strong>My code</strong></p>
  <pre><code>import Board
  
  i = 0
  while i &lt; 10:
      print(&quot;whats the &quot; + str(i + 1) + &quot; rd ten letter line you want in the board&quot;)
      temp_line = input().split()
      print(temp_line)
      j = 1
      while j &lt;= len(temp_line):
          Board.Board[i + 1][j] = temp_line[j - 1]
          j += 1
      i += 1
  </code></pre>
  <p><strong>The board that will be cleaned up, has a hash border for border checking</strong></p>
  <pre><code>Board = [&quot;#&quot;, &quot;#&quot;, &quot;#&quot;, &quot;#&quot;, &quot;#&quot;, &quot;#&quot;, &quot;#&quot;, &quot;#&quot;, &quot;#&quot;, &quot;#&quot;, &quot;#&quot;, &quot;#&quot;],
  [&quot;#&quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot;#&quot;],
  [&quot;#&quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot;#&quot;],
  [&quot;#&quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot;#&quot;],
  [&quot;#&quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot;#&quot;],
  [&quot;#&quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot;#&quot;],
  [&quot;#&quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot;#&quot;],
  [&quot;#&quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot;#&quot;],
  [&quot;#&quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot;#&quot;],
  [&quot;#&quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot; &quot;, &quot;#&quot;],
  [&quot;#&quot;, &quot;#&quot;, &quot;#&quot;, &quot;#&quot;, &quot;#&quot;, &quot;#&quot;, &quot;#&quot;, &quot;#&quot;, &quot;#&quot;, &quot;#&quot;, &quot;#&quot;, &quot;#&quot;]
  </code></pre>
  <p>And then it throws this error out</p>
  <pre><code>Traceback (most recent call last):
    File &quot;main.py&quot;, line 10, in &lt;module&gt;
      Board.Board[i + 1][j] = temp_line[j - 1]
  IndexError: tuple index out of range
  </code></pre>
  <p>Despite the ugly board I've looked manually step by step through the code and of course do not see where anything could possibly be out of range.</p>
  <p>What is it?</p>