Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Second solution in Clear category for Three Words by p4r4d0x42
# migrated from python 2.7
def checkio(words):
wlist = words.split() # Splits list string into a list
count = 0
for w in wlist:
if w.isalpha():
count += 1
if count >= 3:
return True
else:
count = 0
return False
print((checkio("Hello World hello")))# == True, "Hello"
print((checkio("He is 123 man")))# == False, "123 man"
print((checkio("1 2 3 4")))# == False, "Digits"
print((checkio("bla bla bla bla")))# == True, "Bla Bla"
print((checkio("Hi")))# == False, "Hi"
Aug. 19, 2014