list of files to zip python code example
Example: list of files to zip python
import zipfile
lista_files = ["12.csv","13.csv","14.csv"]
with zipfile.ZipFile('out.zip', 'w') as zipMe:
for f in lista_files:
zipMe.write(f, compress_type=zipfile.ZIP_DEFLATED)