Posts by Leandro • 13 points
1 post
-
1
votes1
answer7390
viewsQ: Bubble Sort Algorithm in Python
def bubble_sort(lista): elementos = len(lista)-1 ordenado = False while not ordenado: ordenado = True for i in range(elementos): if lista[i] > lista[i+1]: lista[i], lista[i+1] =…