
def addOne(l):
    # Treat the array l as a number
    i = len(l) - 1
    while i >= 0:
        if l[i] < 9:
            l[i] += 1
            break
        i -= 1
    else:
        l.append(0)
        for j in range(len(l) - 1):
            l[j] = 0
        l[0] = 1


nb = []
for k in range(10):
    addOne(nb)
    print(nb)

5ae75a7abbbcd8558105e60b081fb9268027a8d4
<mask token>

def addOne(l):
    i = len(l) - 1
    while i >= 0:
        if l[i] < 9:
            l[i] += 1
            break
        i -= 1
    else:
        l.append(0)
        for j in range(len(l) - 1):
            l[j] = 0
        l[0] = 1


<mask token>

def addOne(l):
    i = len(l) - 1
    while i >= 0:
        if l[i] < 9:
            l[i] += 1
            break
        i -= 1
    else:
        l.append(0)
        for j in range(len(l) - 1):
            l[j] = 0
        l[0] = 1


<mask token>
for k in range(10):
    addOne(nb)
    print(nb)

def addOne(l):
    i = len(l) - 1
    while i >= 0:
        if l[i] < 9:
            l[i] += 1
            break
        i -= 1
    else:
        l.append(0)
        for j in range(len(l) - 1):
            l[j] = 0
        l[0] = 1


nb = []
for k in range(10):
    addOne(nb)
    print(nb)


def addOne(l):
    # Treat the array l as a number
    i = len(l) - 1
    while i >= 0:
        if l[i] < 9:
            l[i] += 1
            break
        i -= 1
    else:
        l.append(0)
        for j in range(len(l) - 1):
            l[j] = 0
        l[0] = 1


nb = []
for k in range(10):
    addOne(nb)
    print(nb)
