This could be done easier this way: L = [('even','odd')[n%2] for n in range(8)]
-- http://mail.python.org/mailman/listinfo/python-list
This could be done easier this way: L = [('even','odd')[n%2] for n in range(8)]
-- http://mail.python.org/mailman/listinfo/python-list