How can I check if all items in a string are different?
For example:
x:"abcdefga" = False
y:"abcdefg" = True
Since x[0] == x[7]
, then it would be False
.
But in this case I would use this condition in if
.
Is there any function for this in python?