So I created a script in Python that takes a user specified file and zips it up as a zip file.
When I tried it out it doesn't work my code complains how the path is not found I have tried so many different things and looked at a lot of tutorials about how to do this none work.
This is my code:
import zipfile
FZ = 0
F = input("What file do you want zipped? ")
FZ = FZ + 1
with zipfile.ZipFile(("ZipFile", FZ, ".zip"), "w") as z:
z.write(F)
input("Done! Press any key to quit... ")
What am I doing wrong?