My code---->
A = [17, 15, 5, 20, 99, 100]
left = []
right = []
left.append(A[ : len(A)/2 ])
#right.append(A[ len(A)/2 : ])
print("Left Before Sort : {l}".format(l=left))
for j in range(1, len(left)):
key = left[j]
i = j - 1
while (i >= 0 and left[i] > key):
left[i+1] = left[i]
i -= 1
left[i+1] = key
print("Left After Sort {l}".format(l=left))
Why left ain't got sorted? I tried different namings also...but same output.