On 2007-08-01, at 06:50, Astan Chee wrote:
Hi,
I have a dictionary which looks something like this:
elem = {"co":[1,2,3],"cp":[3,2,1],"pp":[5,6,7],"cl":[1,2,3],"qw":
[6,7,8],"qa":[8,7,6]}
what Im trying to do is find all keys in the list that have the
same value and delete those (except o
Hi,
I have a dictionary which looks something like this:
elem =
{"co":[1,2,3],"cp":[3,2,1],"pp":[5,6,7],"cl":[1,2,3],"qw":[6,7,8],"qa":[8,7,6]}
what Im trying to do is find all keys in the list that have the same
value and delete those (except one); thereby removing all redundant keys
so tha