Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Ugly solution in Speedy category for House Password by veky
def checkio(data):
'Return True if password strong and False if not'
print("____")
import string
s=set(data)
def ok(t):
print(s.intersection(t))
return bool(s.intersection(t))
return len(data)>=10 and ok(string.ascii_lowercase) and ok(string.ascii_uppercase) and ok(string.digits)
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. 14, 2012
Comments: