[lang-ref] ( while ) ( python )

def test_while():
    r = ''
    i = 0
    while i < 10:
        r += str(i)
        i += 1
    assert r == '0123456789'