[Solved] Sort highest to lowest without built in [closed]
I dunno why one would do it without built-in functions, but here’s a working bubble sort example. http://rosettacode.org/wiki/Sorting_algorithms/Bubble_sort#Python def bubble_sort(seq): “””Inefficiently sort the mutable sequence (list) in place. seq MUST BE A MUTABLE SEQUENCE. As with list.sort() and random.shuffle this does NOT return “”” changed = True while changed: changed = False for i in … Read more