Key sort : Sort : List PYTHON TUTORIALS


PYTHON TUTORIALS » List » Sort »

 

Key sort


caseList = ['d''B''F''A''E''c']


print caseList
caseList.sort()
print caseList
caseList.sort(key=str.lower)
print caseList



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo List
» Sort