title: "'generator' object is not subscriptable" error
body: <p>Why am I getting this error, from line 5 of my code, when attempting to solve Project Euler Problem 11?</p>
  
  <pre class="lang-python prettyprint-override"><code>for x in matrix:
      p = 0
      for y in x:
          if p &lt; 17:
              currentProduct = int(y) * int(x[p + 1]) * int(x[p + 2]) * int(x[p + 3])
              if currentProduct &gt; highestProduct:
                  print(currentProduct)
                  highestProduct = currentProduct
          else:
                  break
              p += 1
  </code></pre>
  
  <pre class="lang-none prettyprint-override"><code>'generator' object is not subscriptable
  </code></pre>