• acceptable password

 

def isacceptablepassword(password: str) -> bool:

flag = 0

if len(password) > 6:

lst_pass = [i for i in password]

for i in lst_pass:

if i.isdigit():

flag += 1

#

if len(password) > 6 and flag != 0:

return True

else:

return False

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! why doesn't he make a decision?

.