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:
Labels
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:
Iterating over collections: