Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First: double-loop calls for itertools.product solution in Clear category for The End of Other by leggewie
from itertools import product
# did somebody say double-loop? -> itertools.product FTW
def checkio(words_set):
for word1, word2 in product(words_set, repeat=2):
if not word1 == word2 and word1.endswith(word2):
return True
return False
June 3, 2021
Comments: