“Item daftar sortir dering” Kode Jawaban

Item daftar sortir dering

Sort(List) ---> Sorted List
Sort(List,nColumn) ---> Sorted List based on nColumn
Sort(List,nColumn,cAttribute) ---> Sorted List based on Object Attribute
Joker

Item daftar sortir dering

mylist = ["mahmoud","samir","ahmed","ibrahim","mohammed"]
see mylist                # print list before sorting
mylist = sort(mylist)     # sort list
see "list after sort"+nl
see mylist                # print ahmed ibrahim mahmoud mohammed samir
Joker

Item daftar sortir dering

aList = [10,12,3,5,31,15]
aList = sort(aList) see aList # print 3 5 10 12 15 31
Joker

Item daftar sortir dering

aList = [ ["mahmoud",15000] ,
          ["ahmed", 14000 ] ,
          ["samir", 16000 ] ,
          ["mohammed", 12000 ] ,
          ["ibrahim",11000 ] ]

aList2 = sort(aList,1)
see aList2
Joker

Jawaban yang mirip dengan “Item daftar sortir dering”

Pertanyaan yang mirip dengan “Item daftar sortir dering”

Lebih banyak jawaban terkait untuk “Item daftar sortir dering” di Python

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya