結果 : check last letter of string python