結果 : how to check last letter in string python