• Three Words

Question related to mission Three Words

 

I can't see what I have done wrong with the code and would appreciate guidance please:

def checkio(words: str) -> bool: poss_words = words.split(" ") words = [] count = 0

for p in poss_words:
    if p.isalpha():
        words.append(p)
        count+=1
        print("words are", words)
    else:
        count = 0

    if count == 3:
        return True
    else:
        return False