Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
native_three_words solution in Clear category for Three Words by Jon_Red
def checkio(words:str)->bool:
w=zip(words.split(),words.split()[1:],words.split()[2:])
return any(x for x in w if not any(y.isnumeric()for z in x for y in z))
if __name__ =='__main__':
# self-checks
assert checkio('Hello World hello')==True,'Hello'
assert checkio('He is 123 man')==False,'123 man'
assert checkio('1 2 3 4')==False,'Digits'
assert checkio('bla bla bla bla')==True,'Bla Bla'
assert checkio('Hi')==False,'Hi'
July 16, 2020
Comments: