0

Password Validation

What is wrong with my code : #MyCode string = input() num_count = 0 char_count = 0 char = ["!","@","#","

quot;,"%","&","*"] nums = ["1","2","3","4","5","6","7","8","9","0"] for var in string: if var in char: char_count += 1 if var in nums: num_count += 1 if (char_count>1 and num_count>1) and (len(string)>6): print("Strong") else: print("Weak")

16th Dec 2021, 12:02 PM
TD WONDER
2 Antworten
0
Don't seems wrong. Could you give details why you think the code is wrong?
16th Dec 2021, 2:05 PM
Anya
Anya - avatar
0
I tried it in code coach and it worked fine
16th Dec 2021, 9:26 PM
Sousou
Sousou - avatar