Let's say I have two dictionaries as following:
dict1 = {vessel1: [a, b, c], vessel2: [a, d, e], ...}
dict2 = {operation1: [a, d], operation2: [a, e, b], ...}
Each dictionary (dict1
, dict2
) is a dictionary of dictionaries, so that a
, b
, c
, d
, e
, f
and g
are dictionaries too.
What I want is, for example, intersect dict1(vessel1)
with dict2(operation2)
, and have a result dictionary as following:
result_dictionary_of_intersection = [a, b]
I.e., have a result dictionary that only contains items that both vessel1 and operation2 have.
Remembering: a
and b
are dictionaries too.