Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Really short solution in Uncategorized category for House Password by panki
# migrated from python 2.7
import re
def checkio(data):
return bool(re.match('((?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{10})', data))
if __name__ == '__main__':
assert checkio('A1213pokl')==False, 'First'
assert checkio('bAse730onE4')==True, 'Second'
print('All ok')
March 23, 2012
Comments: