PythonでThe End of other
コード
def checkio(words_set): words = list(words_set) if len(words) != 1: for i in words: for j in words: if i != j and i.endswith(j): return True return False else: return False
参考にしたサイト
- python 文字列関数 文字列処理メソッドのまとめ
def checkio(words_set): words = list(words_set) if len(words) != 1: for i in words: for j in words: if i != j and i.endswith(j): return True return False else: return False