You can also use shutil
import shutil
zip_name="path\to\zip_file"
directory_name="path\to\directory"
# Create 'path\to\zip_file.zip'
shutil.make_archive(zip_name, 'zip', directory_name)
This will put the whole folder in the zip.
You can also use shutil
import shutil
zip_name="path\to\zip_file"
directory_name="path\to\directory"
# Create 'path\to\zip_file.zip'
shutil.make_archive(zip_name, 'zip', directory_name)
This will put the whole folder in the zip.