Why's one of the 13 cases failing. What's missing? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Why's one of the 13 cases failing. What's missing?

Password validator challenge https://code.sololearn.com/cpw47b99WD45/?ref=app

3rd Sep 2020, 12:29 PM
kamya EDRINE
kamya EDRINE - avatar
2 Answers
+ 3
Your code fails for any input without digits in it, as you are only checking for special characters and length. For input like this : hello@#&() Your code outputs -> strong Accepted output -> weak
3rd Sep 2020, 12:35 PM
Arsenic
Arsenic - avatar
+ 1
3rd Sep 2020, 1:12 PM
kamya EDRINE
kamya EDRINE - avatar