Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

searching within python lists

Name: Anonymous 2013-03-19 21:29

if i have
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/?

Name: Anonymous 2013-03-20 2:12

>>1-14

Have you read your ____[1] today?

________________________________
[1]: Someone write SICP for prolog already!

Name: Anonymous 2013-03-20 2:21

>>16

SICProlog

I would read it!

As an aside, I'm finding that shitposting in Prolog is actually great practice.  For instance, I learned how to use =..!

Name: Anonymous 2013-03-20 2:38

Structure and Interpretation of Computer Programming in Logic.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List