My all tests are not cleared(last 4) of PASSWORD VALIDATION...I m not getting it why?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

My all tests are not cleared(last 4) of PASSWORD VALIDATION...I m not getting it why??

https://code.sololearn.com/cJ858XOiOUDn/?ref=app

30th Jan 2020, 8:20 PM
SOUMYA
SOUMYA - avatar
5 Answers
+ 6
Now it works perfectly
30th Jan 2020, 8:47 PM
SOUMYA
SOUMYA - avatar
+ 5
Thanks a lot.....
30th Jan 2020, 8:46 PM
SOUMYA
SOUMYA - avatar
+ 5
m=input() k=list(m) d,s=0,0 for i in k: if i.isdigit(): d=d+1 elif i in ['
#x27;,'#','!','%','&','*','@']: s=1+s if d>=2 and (len(k)-1)>=7 and s>=2: print("Strong") else: print("Weak")
30th Jan 2020, 8:46 PM
SOUMYA
SOUMYA - avatar
+ 3
Soumya Sahu Numbers and special charecters also counted as string length.. For ex: ABCDE23%% Here string length is 9 But you are calculating separately so Charecters 5 Digits 2 Special chars 2 c>=7 fails but string length is 9 should be display as strong..
30th Jan 2020, 8:27 PM
Jayakrishna 🇮🇳
+ 1
Fine. You did it.. You are Wel come...
30th Jan 2020, 9:28 PM
Jayakrishna 🇮🇳