Question: Write a Python program zip.py to create a zip file. The program should take name of zip file and files to add to the zip
Write a Python program zip.py to create a zip file. The program should take name of zip file and files to add to the zip file. Hint: Use import zipfile class
Example Run:
Enter zip file name: myZip.zip
Enter file name to zip (enter quit to exit): file1.txt
Enter file name to zip (enter quit to exit): file2.txt
Enter file name to zip (enter quit to exit): file3.txt
Enter file name to zip (enter quit to exit): quit
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
