loop variable

The name in a for heading that takes each item of the sequence in turn, as item in for item in items.

In more detail

It is an ordinary variable, reassigned at the start of every pass, and it keeps its last value after the loop. If you never use it, name it _ to say so.

Related terms

Taught in

References

Certification courses