Use the zipfile module to write a string directly into a zip without saving the text file to your hard drive first.
How to generate text files and download a zip file in Javascript? Download Cbaoddq zip
Use a notes app or a file manager like the ZArchiver app on Android to create a new file. 2. Create the ZIP File Use the zipfile module to write a string