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