l=[]
n=int(input("enter the number of elements"))
for i in range(n): 
    l.append(int(input("enter a number")))
print(l.sort()
print(l)
(l.sort(reverse=True))
print(l)


0ad69241c12ba963ea5f950006b813313870cc30
l=[]
n=int(input("enter the number of elements"))
for i in range(n): 
    l.append(int(input("enter a number")))
print(l.sort()
print(l)
(l.sort(reverse=True))
print(l)

