...

/

Exercise: Data Compression Efficiency

Exercise: Data Compression Efficiency

Practice how to implement a command-line script for data compression of a file using zlib module algorithms.

Problem statement

Write a command-line script that takes a file as input and compresses it using the different algorithms available in the zlib module (Brotli, Deflate, Gzip). You want to produce a summary table that compares the algorithm’s compression time and compression efficiency on the given file.

If you’re unsure about how to do this, click the “Show Hint” button.

Coding challenge

Write your solution code in the following code widget. We’ve ...