For Statement

The for statement iterates over the items of any sequence (a list or a string), in the order that they appear in the sequence.

for i in range(3):
    print(i)    # 0, 1, 2

results matching ""

    No results matching ""