#!/usr/bin/env python import sys from the_semantic_db_code import * from the_semantic_db_functions import * from the_semantic_db_processor import * C = context_list("play with delete and list_simm") x = ket("a",3) + ket("b",-2) + ket("c",7) + ket("d",-5) y = ket("a",5) + ket("b",3) + ket("c") + ket("d",9) print("x:",x) print("y:",y) print("x - y:",delete3(x,y)) print("y - x:",delete3(y,x)) print() #w = [3,5] w = [1,1,1,1,1,1,1,1,1,1,1,1,1,1] w = [7,7,7] f = [0,0,3,7,5,2,9] g = [0,1,3,7,5,1,8,7,2,1] #result = list_simm(w,f,g) #print("result:",result) # printing result is now in list_simm() list_simm(w,f,g)