+ 1
Help me in this code. It satisfies all case expect one and it is hidden
3 ответов
+ 5
The description is perhaps not clear enough. For special characters - you should check if there are two *different* ones in the password.
So it's not the absolute count that matters, but if there are at least two of them.
So:
AadT6## - doesn't count
AadT6#$ - counts
0
The issue with your code is it says Weak if the password string contains a space or other characters that you haven't included in ex. I tried with the password "pass 12amp;". And it says "Weak" though it fulfilled the requirements to pass the validation check. Hope you understood the issue. 😊
0
Nayomi Hasan
Thank you.But in the question they had given that the password should include only the given characters .I also tried it without using ex variable and it didn't satisfy that case