from tree import Node, leaf def is_var(tree:Node)->bool: if type(tree.mark) == str: return True elif tree.mark == "+" or tree.mark == &