A compressed file contains many files, directory and subdirectories. Many applications are available to create a compress file of any large file or directory and retrieve files or folders by extracting a compressed file. When we want to transfer any large or folder over the Internet then it is better to compress the content before transferring. This makes the task faster. You can use python scripts for compressing and extracting any large file or directory.