I have a dictionary like this:
d = {('a','b','c'):4, ('e','f','g'):6}
and I would like to have a set of tuples like this:
{('a', 'b', 'c', 4), ('e', 'f', 'g', 6)}
I've tried in this way:
b = set(zip(d.keys(), d.values()))
But the output is this:
set([(('a', 'b', 'c'), 4), (('e', 'f', 'g'), 6)])
How can i solve that? Thanks!