Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- LETRAS=('AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz')
- def orden_alfabetico(lista):
- posicion_letra = 0
- orden= LETRAS.index(lista[0][0])
- for i in range(0,len(lista)):
- posicion_letra = LETRAS.index(lista[i][0])
- if posicion_letra<orden:
- orden = posicion_letra
- return lista[orden],orden
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement