[BangPypers] Generate Dynamic lists

Gora Mohanty gora at mimirtech.com
Thu Oct 20 21:10:05 CEST 2011


On Fri, Oct 21, 2011 at 12:38 AM, Gora Mohanty <gora at mimirtech.com> wrote:
> On Fri, Oct 21, 2011 at 12:10 AM, Asif Jamadar <asif.jamadar at rezayat.net> wrote:
[...]
> list1 = []
> for i in criteria_list[:2]:
>    for j in range(4):
>        l.append( ( i, j + 1 ) )

Oops, that last line should be list1.append(...) instead of l.append(...)

Regards,
Gora


More information about the BangPypers mailing list