zip file extract python program code example
Example 1: extract zip file python
import zipfile
with zipfile.ZipFile(path_to_zip_file, 'r') as zip_ref:
zip_ref.extractall(directory_to_extract_to)
Example 2: how to extract zip file using python
ZipFile.extractall(path=None, members=None, pwd=None)