結果 : how to check for duplicate letters in a string python