for i in range(n):
    d[str(i + 1)] = [d[str(i)][0] + '[' + chr(105 + i) + ']', d[str(i)][1] +
        '[' + chr(105 + i) + ']', i + 1]
print(d)

def compare(points=d['0'], passNo=0):
    pass
Python - abstracting a recursion to all nth level recursion (lxml)