Trở về đầu
Mời các bạn download tại: Click here
"""
Sap xep theo tieu chi:
Tieu chi o day la do dai xau
"""
def length(s):
return len(s)
a = ['life', 'is', 'not', 'fair', 'get', 'used', 'to', 'it']
a.sort(key=length)
print("Mang a sau khi sap xep theo do dai tang dan: ", a)