Program that receives a name through keyboard and should print the surname, first name and other abbreviated names eg receives "Luis Costa Santos" and returns "Santos, Luis C."
lista = []
nome = ''
answer = ''
i = 0
while answer != 'n':
nome = str(input('ponha o seu nome: '))
lista.append(nome)
answer = str(input('deseja continuar? s ou n: '))
if answer == 's':
i += 1
else:
break
print(lista)