A = [3,2,9,9,7] for name in range(len(A)): for O in range(len(A)-1): if A[O] > A[O+1]: A[O],A[O+1] = A[O+1],A[O] print(A)
To embed this project on your website, copy the following code and paste it into your website's HTML: