Advertisement
Guest User

Untitled

a guest
Mar 17th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. s = input()
  2. first = False
  3. if len(s) > 7 and len(set(s)) > 3:
  4. first = True
  5. second = False
  6. w = 'qwertyuiopasdfghjklzxcvbnm'
  7. for i in w:
  8. if i in s:
  9. second = True
  10. break
  11. w = w.upper()
  12. third = False
  13. for i in w:
  14. if i in s:
  15. third = True
  16. break
  17. r = False
  18. for i in range(10):
  19. if str(i) in s:
  20. r = True
  21. break
  22. last = True
  23. s = s.lower()
  24. if s.find('anna') != -1:
  25. last = False
  26. if first and second and third and last and r:
  27. print('strong')
  28. else:
  29. print('weak')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement