I have a tuple as follows:
tuple
{('A', 'B'), ('A', 'C'), ('B', 'C')}
I would like to create a dict and want to set its keys as the above tuple. Dictionary should look like following:
dict
{('A', 'B'): None,
('A', 'C'): None,
('B', 'C'): None}
How would I do it as easy as possible?
I tried this but does not work:
dict = {(set(tuple(sorted(x)): None for x in lines_tuple)}