Assignment and comparison in one statement

alex23 wuwei23 at gmail.com
Fri May 30 06:22:21 EDT 2008


On May 30, 7:39 pm, Lie <Lie.1... at gmail.com> wrote:
> An example is python's notion for 'for' loop, which can
> only loop a list[...]

Actually, the for statement steps through any object that provides an
iterator interface. Lists just happen to be one such object type.




More information about the Python-list mailing list