Advertisement
gurguration

Untitled

Jan 21st, 2019
530
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.36 KB | None | 0 0
  1. def checkio(good):
  2.     hasup = ''
  3.     hasdig = ''
  4.     haslow = ''
  5.     if 10 > len(good):
  6.         return False
  7.  
  8.     for i in good:
  9.         if i.islower():
  10.             haslow = True
  11.         elif i.isdigit():
  12.             hasdig = True
  13.         elif i.isupper():
  14.             hasup = True
  15.  
  16.     return all((haslow,hasdig,hasup))
  17. print(checkio('123456123456'))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement