title: I am trying to read an image into a folder and store it in an array, but I get an index error
body: <p>Can't I save the pixel data of an image to a list?</p>
  
  <pre class="lang-py prettyprint-override"><code>GmdMiss_Folder = os.path.join(os.getcwd(), '..', 'Photo', 'GMD Miss')
  GmdMiss_List = os.listdir(GmdMiss_Folder)
  </code></pre>
  
  <pre class="lang-py prettyprint-override"><code>for i in range(0, len(GmdMiss_List)):
      Img_Miss_List[i] = np.array(cv2.imread(os.path.join(os.getcwd(), GmdMiss_Folder, GmdMiss_List[i]), cv2.IMREAD_GRAYSCALE))
  </code></pre>
  
  <p>IndexError: list assignment index out of range</p>