list[10] for j in range(0,len(list)-1): for i in range(j+1,len(list)): if list[j]>list[i]: num=list[j] list[j]=list[i] list[i]=num print(list)