Brian Quinlan wrote: >>> if any(seq, lambda x: x==5): >> if any(x==5 for x in seq): > > Aren't all of these equivalent to: > > if 5 in seq: > ... There should be one-- and preferably only one --obvious way to do it. Regards, Martin