Subscribe Us

Header Ads

How to extract a Zip file using python | python project |

 Hey guys in this video i am gonna tell you how you can extract a zip file using python..



Source Code...

#required module-pip install zipfile36

from zipfile import ZipFile


#file name
filename = "myziipfile.zip"

#opening zip file as Zip name
with ZipFile(filename, "r") as zip:
    
    zip.printdir()
    print("extracting all files")
    zip.extractall()
    print("done")

Post a Comment

0 Comments