Wojtek> # the other way ;) Wojtek> print len(filter(lambda z: z!=y, list(x)[:len(n)])) There are, of course, lots of ways of writing equivalent programs that are structured completely differently; but those programs don't answer the question that I'm asking. -- Andrew Koenig, ark at research.att.com, http://www.research.att.com/info/ark