"PAolo" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]

> for i in range(1,10):
>        if i%2:
>                odd.append(i)
>        else:
>                even.append(i)

In 2.5 you'll be able to say

    for i in range(1,10):
        (odd if i%2 else even).append(i)

Whether you want to do this is another question entirely, of course.


-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to