diff --git a/u9/huffman_tree.py b/u9/huffman_tree.py index 0c0df43..c48bd03 100644 --- a/u9/huffman_tree.py +++ b/u9/huffman_tree.py @@ -58,8 +58,8 @@ class HuffmanTree: result ={} if self.root == None: return result - def find(code, node): - if node.left is None and node.right in None: + def find(node, code): + if node.left is None and node.right is None: if code == "": code = "0" result[node.data] = code