Skip to content

Instantly share code, notes, and snippets.

@parzibyte

parzibyte/uso.py Secret

Created May 23, 2021 15:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/706524ddd3d3b5ec6c1ff2b8f00caf3e to your computer and use it in GitHub Desktop.
Save parzibyte/706524ddd3d3b5ec6c1ff2b8f00caf3e to your computer and use it in GitHub Desktop.
numeros = [23, 25, 30, 1, 28, 11, 96, 2, 3, 1]
print("Arreglo de números original:")
print(numeros)
seleccion(numeros)
print("Arreglo de números ordenado: ")
print(numeros)
seleccion_descendente(numeros)
print("Arreglo de números ordenado descendente: ")
print(numeros)
cadenas = ["Luis", "Link", "Mario", "Aloy", "Claire",
"Leon", "Zelda", "María", "King K. Rool"]
print("Arreglo de cadenas original:")
print(cadenas)
seleccion(cadenas)
print("Arreglo de cadenas ordenado: ")
print(cadenas)
seleccion_descendente(cadenas)
print("Arreglo de cadenas ordenado descendente: ")
print(cadenas)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment