-1
I’m learning Python and I’m doing an exercise, which is this one: Implement a program that asks the user for a list of words (i.e., strings) and then display on the screen, one per line, all 4-letter strings in this Python list
But I’m stuck and I couldn’t get more than one word out. If you can help me clarify, I’d appreciate it. The code I made is below.
nome = []
print('Olá')
nome.append(input('Digite um nome: '))
for n in nome:
if len(n) == 4:
print(n)
Important you [Dit] your question and explain objectively and punctually the difficulty found, accompanied by a [mcve] of the problem and attempt to solve. To better enjoy the site, understand and avoid closures and negativities worth reading the Stack Overflow Survival Guide in English.
– Bacco