+ 1
[Question] Password validation
Pls can anyone help me out with the following code. Got all but 2 test cases https://code.sololearn.com/cNQ065x6Ffz0/?ref=app
8 Antworten
+ 4
if (len(inp)>=7 and num_count>=2)and sp_count ==2:
try sp_count>=2
+ 4
x=list(input())
a,b=len([i for i in x if not i.isalnum()]),len([i for i in x if i.isdigit ()])
print("Strong" if a>=2 and b>=2 and len(x)>=7 else "Weak")
+ 4
Minimum 2 special character
+ 3
Sp_count>=2
+ 2
Thanks very much everyone.
Sp_count>=2.
Got it
+ 1
Geek pls explain further
+ 1
sp_count ==2: WRONG
sp_count >=2:RIGHT
+ 1
Samsil Arefeen Okay