Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Regex solution in Uncategorized category for House Password by mualki
import re
def checkio(data):
'Return True if password strong and False if not'
if re.match(r'^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z0-9]{10,}$', data) == None:
return False
return True
if __name__ == '__main__':
assert checkio('A1213pokl')==False, 'First'
assert checkio('bAse730onE4')==True, 'Second'
assert checkio('asasasasasasasaas')==False, 'Third'
assert checkio('QWERTYqwerty')==False, 'Fourth'
assert checkio('123456123456')==False, 'Fifth'
assert checkio('QwErTy911poqqqq')==True, 'Sixth'
print('All ok')
Nov. 9, 2012
Comments: