Name: Anonymous 2013-03-19 21:29
if i have
how can i easily search the list 'animals' for which list items are labeled 'smelly'. after that i want to somehow mark that 'dog' and 'cat' were found to be similar due to them both having the attribute 'smelly'
simple way to do this /prog/?
cat = ['smelly', 'furry', 'claws']
dog = ['smelly', 'loud', 'stupid']
animals.append(cat)
animals.append(dog)how can i easily search the list 'animals' for which list items are labeled 'smelly'. after that i want to somehow mark that 'dog' and 'cat' were found to be similar due to them both having the attribute 'smelly'
simple way to do this /prog/?