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