Skip to content

Instantly share code, notes, and snippets.

Created August 9, 2020 19:55
What would you like to do?
# Ahora ya tenemos los 3 números, vamos a ordenarlos con el método de la burbuja
for i in numeros:
for j in range(len(numeros) - 1):
if numeros[j] > numeros[j+1]:
numeros[j], numeros[j+1] = numeros[j+1], numeros[j]
# Ya están ordenados. Los imprimimos
for numero in numeros:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment