a= [9,1,33,23,12,8,9] for i in range(0,len(a)): for j in range(0,i): if(a[i]>a[j]): temp = a[j] a[j] = a[i] a[i] = temp print(a)
a= [9,1,33,23,12,8,9] for i in range(0,len(a)): for j in range(0,i): if(a[i]>a[j]): temp = a[j] a[j] = a[i] a[i] = temp print(a)