結果 : python compare last characters of string