Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Uncategorized category for House Password by Polaroid
def checkio(data):
'Return True if password strong and False if not'
if len(data) < 10 or data == data.lower() or data == data.upper() or sum(i.isdigit() for i in data) == 0 :
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: