Sep-14-2020, 09:41 PM
The dictionaries can have different keys, and if they have the same key they can have different values stored. It's not clear to me which sort of difference you are looking for. What do you want to do if the key doesn't exist? What do you want to do if the key exists but has a different value? What do you want to do if the same key in each has the same value?
For all these cases, you'll probably want to loop over the keys in dictA and examine dictB on each of them to see if it matches. Then store or mark the case that you need.
For all these cases, you'll probably want to loop over the keys in dictA and examine dictB on each of them to see if it matches. Then store or mark the case that you need.