Hello;
I have the following dictionary:
I am having trouble removing the duplicate values in each of the keys value list, I need it so that:
[CODE]d={1:[a,b], 2:[a,b,c], 3:[a,b,c], 4:[a,c]}{/CODE]
I was thinking of that I would need to import the sets module???
I have the following dictionary:
Code:
d={1:[a,b,b], 2:[a,a,b,c], 3:[a,b,c], 4:[a,c]}
[CODE]d={1:[a,b], 2:[a,b,c], 3:[a,b,c], 4:[a,c]}{/CODE]
I was thinking of that I would need to import the sets module???
Comment