Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Uncategorized category for Three Words by Julia_Swiatek
def checkio(words: str) -> bool:
# add your code here
return False
def checkio(words):
word_list = words.split()
for i in range(len(word_list) - 2):
if word_list[i].isalpha() and word_list[i + 1].isalpha() and word_list[i + 2].isalpha():
return True
return False
print("Example:")
print(checkio("Hello World hello"))
# These "asserts" are used for self-checking
assert checkio("Hello World hello") == True
assert checkio("He is 123 man") == False
assert checkio("1 2 3 4") == False
assert checkio("bla bla bla bla") == True
assert checkio("Hi") == False
print("The mission is done! Click 'Check Solution' to earn rewards!")
Jan. 18, 2024