Help me in this code. It satisfies all case expect one and it is hidden | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Help me in this code. It satisfies all case expect one and it is hidden

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

24th May 2020, 8:47 AM
Sathurakkshaya Manivannan
3 Answers
+ 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
24th May 2020, 8:53 AM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
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 12
amp;". And it says "Weak" though it fulfilled the requirements to pass the validation check. Hope you understood the issue. 😊
24th May 2020, 11:32 AM
Nayomi Hasan
Nayomi Hasan - avatar
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
24th May 2020, 12:40 PM
Sathurakkshaya Manivannan