string = input()
def unique(string):
if set(string) == string:
return 'Unique'
else:
return 'Deja Vu'
unique(string)
the string is just a bunch of random letters, the purpose is to check if there are letters twice in the string. or all the letters are unique. now i'm getting 'Deja Vu' as return because the set is unordered and it's not matching to the original string.
input of "asd" should return 'unique'
input of "aasd" should return 'Deja Vu'
thanks a lot for the helpers