Continue Statement

The continue statement continues with the next iteration of the loop

for i in range(10):
    if i % 2:
        continue
    print(i)    # 0, 2, 4, 6, 8

results matching ""

    No results matching ""