Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def checkio(words):
- split_words = words.split()
- count = 0
- for w in split_words:
- while count < 3:
- if w.isalpha():
- count += 1
- else:
- count = 0
- break
- if count == 3:
- return True
- else:
- return False
- print checkio("He")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement