How python uses the sorted () function
Editor to share with you how python uses the sorted () function, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
Sorted ()
Sorted (): this function returns a sorted list of specified iterable objects.
A = ("b", "g", "a", "d", "f", "c", "h", "e") x = sorted (a) print (x)
The results are as follows:
These are all the contents of the article "how python uses the sorted () function". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!