Next / Previous / Contents / TCC Help System / NM Tech homepage

14.3. The for construct: iteration

To iterate over a section of the program:

for L in E:
        B

This statement executes a block of code once for each member of a sequence E. For each member, the destination L is set to that member, and then the block B is executed.

The destination L follows the same rules for destinations as in the assignment statement.