<gh_stars>0
# documentation for the for statement
# https://docs.python.org/3/reference/compound_stmts.html#for
for i in range(10):
    # do this
    print(i)

# equivalent
# https://docs.python.org/3/reference/compound_stmts.html#the-while-statement
i = 0
while i != 10:
    print(i)
    i += 1 # i = i + 1