practice of the sorting algorithm by python