Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def checkio(good):
- hasup = ''
- hasdig = ''
- haslow = ''
- if 10 > len(good):
- return False
- for i in good:
- if i.islower():
- haslow = True
- elif i.isdigit():
- hasdig = True
- elif i.isupper():
- hasup = True
- return all((haslow,hasdig,hasup))
- print(checkio('123456123456'))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement