Hey guys in this video i am gonna tell you how you can create zip file using python ...
Source Code...
#required module-pip install zipfile36
from zipfile import ZipFile
#opening file ...
z = ZipFile("sample.zip", 'w')
#passing files to zip files..
z.write("ex.py")
z.write("filehandling.py")
z.write("text.txt")
#closing files...
z.close()
0 Comments