Advertisement
Guest User

Untitled

a guest
Apr 19th, 2015
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.30 KB | None | 0 0
  1. LETRAS=('AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz')
  2. def orden_alfabetico(lista):
  3.     posicion_letra = 0
  4.     orden= LETRAS.index(lista[0][0])
  5.     for i in range(0,len(lista)):
  6.         posicion_letra = LETRAS.index(lista[i][0])
  7.         if posicion_letra<orden:
  8.             orden = posicion_letra
  9.     return lista[orden],orden
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement