a=[7,8,9,10] b=[5,4,3,1] b.sort() n=b a.reverse() d=a for i in n: print(i) for i in d: print(i)