I'm not sure why, but I'm getting the wrong out put when my function is applied to "hi" in the three words game.
def checkio(words: str) -> bool:
count = 0
wordlist = words.split()
for word in wordlist:
if word.isalpha():
count += 1
if count >= 3:
return True
else:
return False
Created at: 2018/12/13 20:30; Updated at: 2018/12/15 14:29