Hello all;
I'm working huffman coding of any .txt file, so first I need to analyse this text file. I need to read it, then analyse.
I need "exit" like table:
*************** *************
letter frequency(how many times same latter repeated) Huffman code(this will come later)
*************** *********
I started with:
Can anyone help me?
I'm working huffman coding of any .txt file, so first I need to analyse this text file. I need to read it, then analyse.
I need "exit" like table:
*************** *************
letter frequency(how many times same latter repeated) Huffman code(this will come later)
*************** *********
I started with:
Code:
f = open('test.txt', 'r') #open test.tx for lines in f: print lines #to ensure if all work...
Comment