the programthe function will be called to perform the backup make your program look like this#python backuptozip py copies an entire folder and its contents into zip file whose filename increments import zipfileos def backuptozip(folder)back up the entire contents of "folderinto zip file folder os path abspath(foldermake sure folder is absolute figure out the filename this code should use based on what files already exist number while truezipfilename os path basename(folder'_str(numberzipif not os path exists(zipfilename)break number number todocreate the zip file todowalk the entire folder tree and compress the files in each folder print('done 'backuptozip(' :\\delicious'do the basics firstadd the shebang (#!linedescribe what the program doesand import the zipfile and os modules define backuptozip(function that takes just one parameterfolder this parameter is string path to the folder whose contents should be backed up the function will determine what filename to use for the zip file it will createthen the function will create the filewalk the folder folderand add each of the subfolders and files to the zip file write todo comments for these steps in the source code to remind yourself to do them later the first partnaming the zip fileuses the base name of the absolute path of folder if the folder being backed up is :\deliciousthe zip file' name should be delicious_n zipwhere is the first time you run the programn is the second timeand so on you can determine what should be by checking whether delicious_ zip already existsthen checking whether delicious_ zip already existsand so on use variable named number for and keep incrementing it inside the loop that calls os path exists(to check whether the file exists the first nonexistent filename found will cause the loop to breaksince it will have found the filename of the new zip