官术网_书友最值得收藏!

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]
主站蜘蛛池模板: 河北省| 天全县| 溆浦县| 科技| 桦南县| 淮南市| 承德县| 临沂市| 彰武县| 出国| 卓资县| 甘泉县| 自治县| 新余市| 竹北市| 琼结县| 周宁县| 枞阳县| 潞西市| 上杭县| 泸西县| 屏南县| 嘉禾县| 库伦旗| 开江县| 固阳县| 浦北县| 晋城| 乐山市| 陆丰市| 美姑县| 阿克陶县| 诸城市| 东兴市| 南开区| 额尔古纳市| 济宁市| 呈贡县| 出国| 于田县| 苗栗县|