• Bug with the solving of the task House password


I've had some problems with my code. When I try to do it in Ipython Notebook, I get a correct result. But in Checkio console I've had a fail. Problems with the test 2: the password is "aaaaaaaaaaaaaaaaaaaaa". What can I do? Is it a bug or my fault?

def checkio(password): n = 1 if len(password) >= 10: for x in password: if x.isalpha() and x.islower() == 1: n = 2 if x.isalpha() and x.isupper() == 1: n= 3 if x.isdigit() == 1: n*= 5 if n%15==0: return 'True' else: return 'False'