Then we call the module “shutil.make_archive(“guru99 archive, “zip”, root_dir)” to create archive file, which will be in zip format.Use the split function to split out the directory and the file name from the path to the location of the text file (guru99).Import make_archive class from module shutil.