Amity
Archives — Log Compression
“Tighten the nets, shrink the bytes.” — Harbor IT
Challenge:
Compress a log file with
zlib
and return the compressed size (in bytes).
Operations • Storage Control
Task:
Implement
compress_log(file_name)
.
Read the file’s contents, compress with
zlib.compress
, and return
len
of the compressed data.
Click
Run Unit Tests
. If all tests pass, you'll get the flag.
def compress_log(file_name): # Your code here return 0 # Test runner do not edit below run_selected_test()
Run Unit Tests
Output or flag will appear here...