#specified the directory name
Directory = ('.\1\2')
#change directory from working directory to directory with files
os.chdir(Directory)
loop through items in directory
for item in os.listdir(Directory):
# check for ".zip" extension
if item.endswith('.zip'):
# get full path of files
filename = os.path.abspath(item)
# create zipfile object
zip_ref = ZipFile(filename)
# extract file to dir
zip_ref.extractall(Directory)
# close file
zip_ref.close()
# delete zipped file
os.remove(filename)