On Fri, Oct 21, 2011 at 6:12 AM, Saager Mhatre <[email protected]> wrote:
[...]
> While I'd usually suggest a list comprehension like...
>
> [(criteria, level) for level in range(1, 4) for criteria in
> criteria_list[:2]]
[...]

List comprehensions would indeed be the Pythonic way
to do it. The idea here was to get clarifications on what
the original poster wanted, and give him an example of
the same, rather than having him get bogged down in
understanding syntax.

Regards,
Gora
_______________________________________________
BangPypers mailing list
[email protected]
http://mail.python.org/mailman/listinfo/bangpypers

Reply via email to