dl = [1,3,4,5,6,7,8,9]
z = map(lambda x,p: (x[i] in p ) for i in range(0, len(x)), [6,7,8],dl )
dl = [1,3,4,5,6,7,8,9]
z = map(lambda x,p: (x[i] in p ) for i in range(0, len(x)), [6,7,8],dl )
dl = [1,3,4,5,6,7,8,9]
z = map(lambda x: (x, x in dl), [6,7,8,15])
print z
[(6, True), (7, True), (8, True), (15, False)]
dl = [1,3,4,5,6,7,8,9]
z = [(x, x in dl) for x in [6,7,8,15]]
print z
[(6, True), (7, True), (8, True), (15, False)]
>>> [x in [6,7,8] for x in dl]
[False, False, False, False, True, True, True, False]
>>> [(x, x in [6,7,8]) for x in dl]
[(1, False), (3, False), (4, False), (5, False), (6, True), (7, True), (8, True), (9, False)]