Boris Ozegovic wrote: > Paul Rubin wrote: > >> if any(x[0]==element[0] for x in a): > > How come this list comprehension isn't in [] brackets?
It isn't list comprehension, it is generator expression http://en.wikipedia.org/wiki/Python_syntax_and_semantics#Generator_expressions -- Tero -- http://mail.python.org/mailman/listinfo/python-list