結果 : how to check each character in a string python