結果 : how to check for duplicates in a string python