randomling: Sherlock (of BBC Sherlock) in a bathrobe, grinning. (sherlock)
Lee ([personal profile] randomling) wrote2012-08-07 03:58 pm
Entry tags:

nothing to see here



a = [ 1, 2, 3, 4, 5, 10]
b = [ 7, 8, 9, 10]

def in_list(a,b):
    for item in a:
        if item in b:
            return True
    return False

if in_list(a,b):
    print "Yay"




Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting