Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
54 chars solution in Creative category for House Password by Sim0000
checkio=lambda p:len(p)>9>len({ord(x)>>5for x in p})>2
# Thanks @przemyslaw.daniel and @ermichin158
# https://py.checkio.org/mission/house-password/publications/przemyslaw.daniel/python-3/1-liner-62-chars-thats-it/
# https://py.checkio.org/mission/house-password/publications/ermichin158/python-3/1-liner-with-set-57-characters/
# ord(x)>>5 is mapping
# 0-9 ==> 1
# A-Z ==> 2
# a-z ==> 3
#These "asserts" using only for self-checking and not necessary for auto-testing
if __name__ == '__main__':
assert checkio('A1213pokl') == False, "1st example"
assert checkio('bAse730onE4') == True, "2nd example"
assert checkio('asasasasasasasaas') == False, "3rd example"
assert checkio('QWERTYqwerty') == False, "4th example"
assert checkio('123456123456') == False, "5th example"
assert checkio('QwErTy911poqqqq') == True, "6th example"
Aug. 12, 2017
Comments: