A python program that compresses the text file in the attachment (lipsum.txt) using Huffman code.
Program includes;
Find the frequencies of letters in the text file.
Construct the Huffman tree of the characters used, according to their frequencies in the text file.
Find a code mapping (you can use dictionaries) and save that as a seperate file for decoding later (you can use JSON format for this).
Compress the text file given and print the compression ratio.
Finally your program should be able to decode the compressed file.