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
Created at: 2020/09/05 06:41; Updated at: 2020/09/06 09:43
The question is resolved.