I tried finding many places , but could not find same one, please help in this python code. I have three nested multi level dictionaries, two main (A and B) and one small (temp)
A={"X":{"XX":1,"XX1":56},"Y":{"YY":2},"Z":{"ZZ":{"ZA":34,"ZB":35}}
B={"X":{"XX":2,"XX1":34},"L":{"LL":3},"Z":{"ZZ":{"ZA":31,"ZB":38}}
temp={"X":{"XX":1},"Z":{"ZZ":{"ZA":34}}
If values of "temp" matches "A" then update "A" and "B" by deleting that entire record. So, final A and B should be
A={"X":{"XX1":56},"Y":{"YY":2},"Z":{"ZZ":{"ZB":35}}
B={"X":{"XX1":34},"L":{"LL":3},"Z":{"ZZ":{"ZB":38}}