I have a nested dictionary structure like so:
dataDict = {
"a":{
"r": 1,
"s": 2,
"t": 3
},
"b":{
"u": 1,
"v": {
"x": 1,
"y": 2,
"z": 3
},
"w": 3
}
}
with a list of keys:
maplist = ["b", "v", "y"]
I want to remove the item in the dict that the maplist is pointing to. Any suggestions?