Skip to end of metadata
Go to start of metadata

The for loop

The for loop sintax is:

where range can be any type of collection. Examples:

it is equivalent to

from C# or Java. You can also use with lists:

or arrays:

The while loop

Iterating over collections:

  • No labels