# there are two types of lists
# returns new list
sorted(list_name, reverse=True)
# changes list in place
list_name.sort(reverse=True)
#1 Changes list
list.sort(reverse=True)
#2 Returns sorted list
sorted(list, reverse=True)
# defning A as a list
A.sort(reverse = True)
sort and reverse function
l=eval(input("enter"))
l.sort()
print(l)
l.reverse()
print(l)
#output
enter[1,2,3]
[1, 2, 3]
[3, 2, 1]
sorted(timestamps, reverse=True)