Suppose I have two Python dictionaries - dictA and dictB. I need to find out if there are any keys which are present in dictB but not
dictA
dictB
not sure whether its "fast" or not, but normally, one can do this
dicta = {"a":1,"b":2,"c":3,"d":4} dictb = {"a":1,"d":2} for key in dicta.keys(): if not key in dictb: print key