title: Importing images from a directory (Python) to list or dictionary
body: <p>I am trying to import all the images inside a directory (the directory location is known).</p>
  <pre><code>path = /home/user/mydirectory
  </code></pre>
  <p>I already know a way of finding out the length of the directory.</p>
  <p>What I'm not sure about is how I can import the images (using <code>PIL/Pillow</code>) into either a list or a dictionary, so they can be properly manipulated.</p>