[lang-ref] ( take_first_n ) ( python )

def test_take_first_n():
    # text[:n]
    text = '0123456789'
    n = 3
    part = text[:n]
    assert part == '012'