結果 : all but last character of string python