Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Three Words by Pactp
def checkio(words: str) -> bool:
suc_words_cnt = 0
for word in words.split():
if word.isalpha():
suc_words_cnt += 1
else:
suc_words_cnt = 0
if suc_words_cnt == 3:
return True
return False
March 16, 2023