0
Can you help me?
I can't find the error in my code
3 odpowiedzi
+ 1
What is the task for your code.. ?
But code Idenation errors.. Save code and share link. That's helps "how you adding identation, for dubug.
Else part should be idented according to if identation. And also next if-else should be idented so it belong to loop.. currently it's out side loop.
+ 1
Thank you. I'll try to upload the link. Haven't done it before
0
words=list(input())
backup=[]
repetidos=[]
for n in words:
if n not in backup:
backup.append(n)
else:
repetidos.append(n)
if n in repetidos:
print("false")
else:
print("true")