I have one dictionary, like the following:
adict = {'1': alist, '0': blist, '2': clist}
I want to perform some things, for all lists in adict except the list with the key '0'.
So I have tried:
for key in adict:
if key is not '0':
do something
but the test doesnot work, something is done in all cases, including the one that key=='0'.
I cannot figure out, what is wrong, any help?