- Hands-On Data Science and Python Machine Learning
- Frank Kane
- 60字
- 2021-07-15 17:15:01
The sort function
Finally, let's have a built-in sort function that you can use:
z = [3, 2, 1]
z.sort()
z
So if I start with list z, which is 3,2, and 1, I can call sort on that list, and z will now be sorted in order. The output of the above code is as follows:
[1, 2, 3]
推薦閱讀
- The Supervised Learning Workshop
- Getting Started with React
- Oracle從新手到高手
- R語言編程指南
- Cassandra Data Modeling and Analysis
- 面向對象程序設計(Java版)
- C#應用程序設計教程
- Mastering Akka
- Java SE實踐教程
- 分布式數據庫原理、架構與實踐
- JavaScript悟道
- Functional Python Programming
- Mastering Machine Learning with R
- Manage Your SAP Projects with SAP Activate
- R語言數據分析從入門到實戰