how to add dynamically generated pdf file to zipfile Python?
z = zipfile.ZipFile("zipfile.zip", "w")
z.write(filename)
It takes string as an argument that is actually path of that file to be add to the zip. But I want to add dynamically generated file.