Advertisement
hakegawa

Untitled

Aug 16th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. def checkio(words):
  2. split_words = words.split()
  3. count = 0
  4. for w in split_words:
  5. while count < 3:
  6. if w.isalpha():
  7. count += 1
  8. else:
  9. count = 0
  10. break
  11.  
  12. if count == 3:
  13. return True
  14. else:
  15. return False
  16.  
  17. print checkio("He")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement