# _*_ utf-8 _*_: # author:Administrator list1=[] import random for i in range(10): a=random.randint(0,100) list1.append(a) print(list1) for j in range(1,10): print(list1[j]," ",j) index=j-1 current=list1[j] while(j>=0 and list1[index]>current): list1[index+1]=list1[index] index=index-1 list1[index+1]=current print(list1)