This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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: | |
print(numero) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment