You can download this code by clicking the button below.
This code is now available for download.
This function creates a zip file and adds the specified file to it.
Technology Stack : zipfile
Code Type : File processing
Code Difficulty : Intermediate
def zipfile_create(arg1, arg2):
with zipfile.ZipFile(arg1, 'w') as zipf:
zipf.write(arg2)