a=[1,1,4,5,1,4] A = 0 B = 0 for _ in range(len(a)): A = 0 while A < len(a): if a[_] > a[A]: B = a[_] a[_] = a[A] a[A] = B A += 1 print(a)
To embed this project on your website, copy the following code and paste it into your website's HTML: