title: How to compress with 7zip instead of zip, code changing
body: <p>I have a code that compress every file in a specific folder with zip but I want to compress it with 7zip, so how to do ? </p>
  
  <p>This is what I have so far: </p>
  
  <pre><code>for date in dict_date:#zipping folders and get same name like the folder
      with ZipFile(os.path.join(src, '{0}.7z'.format(date)), 'w') as myzip:
          for subFolder in dict_date[date]:
              for fil in os.listdir(os.path.join(src, date, subFolder)):
                  if not fil.endswith('.7z'):
                      myzip.write(os.path.join(src, date, subFolder, fil))
  </code></pre>