Having the following list:
lista_nomes =['Manuel', 'Laura', 'Antonio', 'Jasmim', 'Maria', 'Silvia', 'Lu', 'Pancrácio', 'Diogo', 'Ricardo', 'Miguel', 'Andre']
And wanting to sort it by increasing number of letters.
Now, I'm not getting the desired result. What I have is the following:
lista_nomes =['Manuel', 'Laura', 'Antonio', 'Jasmim', 'Maria', 'Silvia', 'Lu', 'Pancrácio', 'Diogo', 'Ricardo', 'Miguel', 'Andre']
lista_nomes.sort()
print (lista_nomes)
*OUTPUT-> ['Andre', 'Antonio', 'Diogo', 'Jasmim', 'Laura', 'Lu', 'Manuel', 'Maria', 'Miguel', 'Pancrácio', 'Ricardo', 'Silvia']*
This is not quite what I wanted ...
Someone who can help me please?
Thanks,