Luis M. Gonzalez wrote:
> This could be done easier this way:
>
> L = [('even','odd')[n%2] for n in range(8)]That is even/odd, his(created to demonstrate the uglies of ternary) has 4 states, zero, -/+ then even/odd. -- http://mail.python.org/mailman/listinfo/python-list
