Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for House Password by jani
validators = [
lambda s: any(c.isupper() for c in s),
lambda s: any(c.islower() for c in s),
lambda s: any(c.isdigit() for c in s),
lambda s: len(s) >= 10
]
def checkio(data):
num_validators = len(validators)
validator_results = [False]*num_validators
for i in range(0, num_validators):
if validators[i](data):
validator_results[i] = True
return all(validator_results)
July 21, 2015
Comments: