Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Uncategorized category for House Password by ilih
# migrated from python 2.7
import string
def checkio(data):
if len(data)<10:
return False
s = set(data)
for x in (string.ascii_lowercase, string.ascii_uppercase, string.digits):
if len(s.intersection(x))==0:
return False
return True
if __name__ == '__main__':
assert checkio('A1213pokl')==False, 'First'
assert checkio('bAse730onE4')==True, 'Second'
print('All ok')
May 7, 2011