a=[20,4,23,5,2]
a.sort()
print(a)
a=[20,4,23,5,2]
a.sort(reverse=True)
print(a)
a=["courses","gfg","pyhton"]
a.sort()
print(a)
def MyFun(s):
    len(s)
a=["courses","gfg","pyhton"]
a.sort(key=MyFun)
a.sort(reverse=True)
print(a)
# print(a)

