что не так?
I would like to give some feedback about ...
From: http://www.checkio.org/mission/house-password/solve/
HTTP_USER_AGENT:
Mozilla/5.0 (X11; Fedora; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.130 Safari/537.36
def checkio(data):
digit = False upper = False lower = False if len(data) >= 10: for x in data: if x in map(chr, range(ord('0'), ord('9'))): digit = True if x in map(chr, range(ord('A'), ord('Z'))): upper = True if x in map(chr, range(ord('a'), ord('z'))): lower = True return digit and upper and lower
if name == 'main': #These "asserts" using only for self-checking and not necessary for auto-testing assert checkio(u'A1213pokl') == False, "1st example" assert checkio(u'bAse730onE4') == True, "2nd example" assert checkio(u'asasasasasasasaas') == False, "3rd example" assert checkio(u'QWERTYqwerty') == False, "4th example" assert checkio(u'123456123456') == False, "5th example" assert checkio(u'QwErTy911poqqqq') == True, "6th example"