def OP2BTree(lista, BTree): if not (lista is None or BTree is None): for item in lista: aux = BTree.get(item) if aux == None: BTree.insert(item) return str(BTree)
def OP3BTree(lista, BTree): if not (lista is None or BTree is None): for item in lista: aux = BTree.get(item) if aux != None: lista.remove(item) return str(lista)
def OP1BTree(lista, BTree): if not (lista is None or BTree is None): inter = [] for item in lista: aux = BTree.get(item) if aux == item: inter.append(item) return inter