1
Having the following list:
lista_nomes =['Manuel', 'Laura', 'Antonio', 'Jasmim', 'Maria', 'Silvia', 'Lu', 'Pancrácio', 'Diogo', 'Ricardo', 'Miguel', 'Andre']
And wanting to order it by order quantity of increasing letters.
I am not achieving the desired result. Here’s what I got:
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 exactly what I wanted...
Someone who can help me please?
Thank you,
It’s not the "length" of the name you want?
– White