Considering the following list:
lista_nomes =['Manuel', 'Laura', 'Antonio', 'Jasmim', 'Maria', 'Silvia', 'Lu', 'Pancrácio', 'Diogo', 'Ricardo', 'Miguel', 'Andre',]
*
What I want to do is print the list elements that end with the letter 'a'.
Well, for a list of integers, you could do this:
>>> L = [1, 1, 2, 3, 5, 8, 13, 21]
>>> L[-1]
21
I know I could do this:
lista_nomes =['Manuel', 'Laura', 'Antonio', 'Jasmim', 'Maria', 'Silvia', 'Lu', 'Pancrácio', 'Diogo', 'Ricardo', 'Miguel', 'Andre',]
print(lista_nomes[1:2])
print(lista_nomes[5:6])
print(lista_nomes[4:5])
But I do not think you're okay!
Any ideas, please?!
Thank you,