Light Mode
Dark Mode
Failing on Hi?!?!

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: Dec. 13, 2018, 8:30 p.m.
Updated: Dec. 15, 2018, 2:29 p.m.
0
8
User avatar
Morph