#!/usr/local/bin/python2 l = [1,2,3] for i in xrange(10000): any(e == 3 for e in l) print any(e == 4 for e in l)