List comprehension confusion...

Afanasiy abelikov72 at hotmail.com
Sun Feb 2 08:23:12 EST 2003


On Sun, 02 Feb 2003 03:10:27 GMT, Afanasiy <abelikov72 at hotmail.com> wrote:

>I am confused about the purpose of list comprehensions.
>What can they do which an explicit for loop cannot?

Replies to this question relating to convenience led
me to look for something like C's ternary ? operator.

Does something like that exist in Python?




More information about the Python-list mailing list