結果 : how to check the characters in a string python