My script
huffman_list =right[1:]+left[1:] print(huffman_list) huffman_dict = {a[0]:bitarray(str(a[1])) for a in huffman_list} print(huffman_dict)