list sorting algorithm python code example Example: python sort algorithm a = [1, 2, 0, 8, 4, 5, 3, 7, 6] print(a.sort())