Advertisement
Guest User

Untitled

a guest
Jan 25th, 2020
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. s = input()
  2. def func(s):
  3. if len(s) <= 8:
  4. return False
  5. count = 0
  6. buf = 'qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM123456789'
  7. for i in s:
  8. if i in buf:
  9. count += 1
  10. if count != len(s):
  11. return False
  12. return True
  13. if func(s):
  14. print("YES")
  15. else:
  16. print("NO")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement