Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Uncategorized category for House Password by axaroth
# migrated from python 2.7
import re
expr = re.compile("^.*(?=.{10,})(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).*$")
def checkio(data):
'Return True if password strong and False if not'
return bool( expr.findall(data))
if __name__ == '__main__':
assert checkio('A1213pokl')==False, 'First'
assert checkio('bAse730onE4')==True, 'Second'
print('All ok')
March 24, 2011
Comments: