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?
Created at: 2021/01/26 15:17; Updated at: 2021/01/26 15:19
The question is resolved.