結果 : how to check for repeating characters in a string python