My question is this.
If i need to be able to input an unspecified amount of Huffman code as raw input
e.g. A 00
E 01
L 100
encode "Word"
decode "0100101010 "
etc etc
would i use tuples and dictionaries to assign the different input values, because after the unspecified amount of Huffman code has been inputed the final line will contain either "encode" "A word" or "decode" "01010110" finally terminated by a blank line.
I am very new to python and don;t have much experience as I am pretty much teaching myself.
Any help in this would be greatly appreciated
Thank you
If i need to be able to input an unspecified amount of Huffman code as raw input
e.g. A 00
E 01
L 100
encode "Word"
decode "0100101010 "
etc etc
would i use tuples and dictionaries to assign the different input values, because after the unspecified amount of Huffman code has been inputed the final line will contain either "encode" "A word" or "decode" "01010110" finally terminated by a blank line.
I am very new to python and don;t have much experience as I am pretty much teaching myself.
Any help in this would be greatly appreciated
Thank you
Comment