"Magnus L. Hetland" wrote:
[(i, s) for i in nums and s in strs]
[(i, s) for i in nums and s in strs]
[(i, s) for i in (nums and s in strs)]
It *might* be feasible to use
[(i, s) for i in nums and for s in strs]
If I get a spare moment or two one day I'll try this
and see whether the parser chokes. (Python's parser
is a bit strange - it's hard to predict what it can
handle and what it can't.)
Greg