The code is supposed to take any string input and check if the word is an isogram (word that does not use repeating letters). But it doesn't actually do that sadly.
# word input and defining variables
word = list(str(input()))
letter = 0
letters = len(word)
x = 0
while letter <= letters: # while loop to repeat once for each letter
if word.count([letter]) > 1: # checks if the letter is repeated more than once
x += 1
letter += 1 # letter is raised by one so it moves onto the next place in the list
else:
letter += 1
# printing result
if x == 0:
print("true")
else:
print("false")