You can download this code by clicking the button below.
This code is now available for download.
Compresses two files into a zip archive.
Technology Stack : shutil
Code Type : File operation
Code Difficulty : Intermediate
def zip_file(file1, file2, output):
import shutil
shutil.make_archive(output, 'zip', file1, file2)
return output + '.zip'