i = 1
do_not_exit = True

while i < 10 and do_not_exit:
    print(i)
    i = i + 3
    if i * i > 20:
        do_not_exit = False
    