Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Uncategorized category for House Password by Or123
def checkio(data):
'Return True if password strong and False if not'
num = False
upper = False
lower = False
for i in range(len(data)):
num = num or data[i].isnumeric()
upper = upper or data[i].isupper()
lower = lower or data[i].islower()
return num and upper and lower and len(data)>=10
if __name__ == '__main__':
assert checkio('A1213pokl')==False, 'First'
assert checkio('bAse730onE4')==True, 'Second'
print ("All ok")
May 28, 2012
Comments: