+ 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

31st Jul 2020, 11:46 AM
BRYAND CHE
BRYAND CHE - avatar
8 Réponses
+ 4
if (len(inp)>=7 and num_count>=2)and sp_count ==2: try sp_count>=2
31st Jul 2020, 11:57 AM
Aayush $aini
Aayush $aini - avatar
+ 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")
31st Jul 2020, 11:53 AM
˜”*°•.˜”*°• Mohan 333 •°*”˜.•°*”˜
˜”*°•.˜”*°• Mohan 333 •°*”˜.•°*”˜ - avatar
+ 4
Minimum 2 special character
31st Jul 2020, 11:54 AM
Aayush $aini
Aayush $aini - avatar
+ 3
Sp_count>=2
31st Jul 2020, 11:58 AM
˜”*°•.˜”*°• Mohan 333 •°*”˜.•°*”˜
˜”*°•.˜”*°• Mohan 333 •°*”˜.•°*”˜ - avatar
+ 2
Thanks very much everyone. Sp_count>=2. Got it
31st Jul 2020, 12:01 PM
BRYAND CHE
BRYAND CHE - avatar
+ 1
Geek pls explain further
31st Jul 2020, 11:55 AM
BRYAND CHE
BRYAND CHE - avatar
+ 1
sp_count ==2: WRONG sp_count >=2:RIGHT
31st Jul 2020, 11:56 AM
The future is now thanks to science
The future is now thanks to science - avatar
31st Jul 2020, 12:06 PM
BRYAND CHE
BRYAND CHE - avatar