char_set = [False for _ in range(128)]
for char in string:
val = ord(char)
if char_set[val]:
# Char already found in string
return False
char_set[val] = True
I'm trying to decipher this code but don't understand what char_set is doing? The part inside the list is confusing.