title: Read all files in .zip archive in python
body: <p>I'm trying to read all files in a <code>.zip</code> archive named <code>data1.zip</code> using the <code>glob()</code> method.</p>
  
  <pre><code>import glob
  from zipfile import ZipFile
  
  archive = ZipFile('data1.zip','r')
  files = archive.read(glob.glob('*.jpg'))
  </code></pre>
  
  <p>Error Message:</p>
  
  <pre><code>TypeError: unhashable type: 'list'
  </code></pre>
  
  <p>The solution to the problem I'm using is:</p>
  
  <pre><code>files = [archive.read(str(i+1)+'.jpg') for i in range(100)]
  </code></pre>
  
  <p>This is bad because I'm assuming my files are named <code>1.jpg</code>, <code>2.jpg</code>, etc.</p>
  
  <p>Is there a better way using python best practices to do this? Doesn't need to be necessarily using <code>glob()</code></p>