Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created July 23, 2020 21:21
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/966ee14df680940359894956630d34ee to your computer and use it in GitHub Desktop.
Save parzibyte/966ee14df680940359894956630d34ee to your computer and use it in GitHub Desktop.
def funcion_que_devuelve_la_clave(elemento_del_arreglo):
return valor_que_se_toma_al_ordenar
ordenada = sorted(desordenada, key=funcion_que_devuelve_la_clave)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment