Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Uncategorized category for House Password by LT04
def checkio(data):
d=0
u=0
l=0
for i in range(len(data)):
if ord(data[i]) > 47 and ord(data[i]) < 58:
d = d+1
if ord(data[i]) > 64 and ord(data[i]) < 91:
u = u+1
if ord(data[i]) > 96 and ord(data[i]) < 123:
l = l+1
if len(data) >= 10 and d != 0 and u != 0 and l != 0:
return True
else:
return False
#Some hints
#Just check all conditions
if __name__ == '__main__':
#These "asserts" using only for self-checking and not necessary for auto-testing
print("Coding complete? Click 'Check' to review your tests and earn cool rewards!")
Oct. 19, 2017