i have a question about the following code
smaller={}
for( dest in a[neigbour].keys())
if(dest in smaller.keys() == False):
print 'false'
}
I can't make this code print false.. am I doing something wrong? I wonder if I am doing the correct thing to check the statement dest in smaller.keys() == False
FalseorTruein conditional statements.x in d.keys(), you can simply usex in d. Similarly,for x in d:loops over the keys.