Subscribe Us

Header Ads

How to Create Zip File Using Python | Python projects| priyansh jain

 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()


Post a Comment

0 Comments