title: How to print the percentage of zipping a file python
body: <p>I would like to get the percentage a file is at while zipping it. For instance it will print 1%, 2%, 3%, etc. I have no idea on where to start. How would I go about doing this right now I just have the code to zip the file.</p>
  
  <p>Code:</p>
  
  <pre><code>zipPath = zipfile.ZipFile("Files/Zip/" + pic + ".zip", "w")
  
  for root, dirs, files in os.walk(filePath):
      for file in files:
          zipPath.write(os.path.join(root, file), str(pic) + "\\" + file)
  
  print("Done")
  zipPath.close()
  </code></pre>