A=[71,33,12,10,61,51] z=0 k=len(A) p=0 n=0 while k>n+1: p=0 n=0 while k>p+1: if A[p]>A[p+1]: z=A[p] A[p]=A[p+1] A[p+1]=z else: n=n+1 p=p+1 print(A)