How to Sort a List, Tuple or Object (with sorted) in Python
www.pythoncentral.io › how-to-sort-a-list-tuple-orSorting a Python List the Simple Way. Okay, so if you only want to sort a list of numbers, Python has a built in function that does all the hard work for you. Say we have a list of numbers: 1. >>> a = [3, 6, 8, 2, 78, 1, 23, 45, 9] And we want to sort them in ascending order. All we do is call sort on the list, for in-place sorting, or the ...