title: extract a zip file with digit code password in python
body: <p>I am doing challenges and this come up: we've started organising the files to try and make sense of them, but they're all locked with a numerical three-digit passcode. See if you can write a script to get into this example file alien-zip-2092.zip and read the text file inside which we think is named whatever the zip is (so in this case alien-zip-2092.txt). Oh, by the way, files should be extracted to the /tmp/ directory.</p>
  
  <p><strong>Extract the file to the /tmp/ directory to get the flag. Make sure to break out of the loop when you hit the correct password, otherwise you will override the correct file with a blank one with the same name.</strong></p>
  
  <pre><code>import zipfile as zip
  filename = "file alien-zip-2092.zip"
  zip.filename.extractall(psw=111)
  </code></pre>
  
  <p>this is what i did but did not work I thing there is another way.</p>