[1, 2, 3, 4, 5, 6, 7, 8, 9]
[1, 9, 2, 8, 3, 7, 4, 6, 5]
[1, 2, 3, 4, 5, 6, 7, 8]
[1, 8, 2, 7, 3, 6, 4, 5]
[1, 2, 3, 4]
[1, 4, 2, 3]
[1, 2, 3]
[1, 3, 2]
[1, 2]
[1, 2]
[1]
[1]
[]
[]
Python standard library function for rearranging a list