attacklist=[] attacklist=list(attack.values()) nonattacklist=[] nonattacklist=list(non_attack.values()) for i in attacklist: if i in nonattacklist: non