backuptozip(' :\\delicious'you can use os walk(in for loop and on each iteration it will return the iteration' current folder namethe subfolders in that folderand the filenames in that folder in the for loopthe folder is added to the zip file the nested for loop can go through each filename in the filenames list each of these is added to the zip fileexcept for previously made backup zips when you run this programit will produce output that will look something like thiscreating delicious_ zip adding files in :\delicious adding files in :\delicious\cats adding files in :\delicious\waffles adding files in :\delicious\walnut adding files in :\delicious\walnut\waffles done the second time you run itit will put all the files in :\delicious into zip file named delicious_ zipand so on ideas for similar programs you can walk directory tree and add files to compressed zip archives in several other programs for exampleyou can write programs that do the followingwalk directory tree and archive just files with certain extensionssuch as txt or pyand nothing else walk directory tree and archive every file except the txt and py ones find the folder in directory tree that has the greatest number of files or the folder that uses the most disk space summary even if you are an experienced computer useryou probably handle files manually with the mouse and keyboard modern file explorers make it easy to work with few files but sometimes you'll need to perform task that would take hours using your computer' file explorer the os and shutil modules offer functions for copyingmovingrenamingand deleting files when deleting filesyou might want to use the send trash module to move files to the recycle bin or trash rather than permanently deleting them and when writing programs that handle files