結果 : check for repeated characters in a string python