1 Resposta
+ 5
empt = []
name = ["kevin"," ","python"," ","ismatch"]
for i in range(len(name)):
if name[i] == " ":
empt.append(i)
print(empt)
I don't know what you're trying to do but puting spaces into arrays like that doesn't seem to be a good idea.