title: Extracting a file in Python3 to a directory
body: <p>Let's just say the variable "x" is where the file to be extracted is located and "Y" is where I want to extract it to. I have these set in another .py file. So how would I do this? I tried using the code below but cmd kept giving me a "zipthis.zip not found". I have the .zip on my desktop inside a file called source. Summary of my ramblings: I want to extract a .zip to another location. Thanks in advance.</p>
  
  <pre><code>import zipfile
  fh = open('zipthis.zip', 'rb')
  z = zipfile.ZipFile(fh)
  for name in z.namelist():
  outpath = "C:\\"
  z.extract(name, outpath)
  </code></pre>