d = dict((i, i) for i in range(10))
d2 = dict((i, i) for i in range(1, 11))
set(d.items()) - set(d2.items())
set(d2.items()) - set(d.items())
set(d2.items()) ^ set(d.items())
set(d2.items()).symmetric_difference(list(d.items()))
Print diff of Python dictionaries