password validating problen | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

password validating problen

Task: Write a program that takes in a string as input and evaluates it as a valid password. The password is valid if it has at a minimum 2 numbers, 2 of the following special characters ('!', '@', '#', '

#x27;, '%', '&', '*'), and a length of at least 7 characters. If the password passes the check, output 'Strong', else output 'Weak'. Input Format: A string representing the password to evaluate. Output Format: A string that says 'Strong' if the input meets the requirements, or 'Weak', if not. i have made this script, but it doesn't work with the 8th case. I searched for a flaw in the script, but; it all seems correct. Some idea? https://code.sololearn.com/c05O865cLwZI/?ref=app https://code.sololearn.com/c05O865cLwZI/?ref=app

19th Jun 2020, 4:25 PM
Biondi Tommaso
Biondi Tommaso - avatar
2 Answers
+ 2
Show us what you have worked on....
19th Jun 2020, 4:34 PM
Neba Emmanuel
Neba Emmanuel - avatar
+ 2
sorry i’ve fixed it
19th Jun 2020, 4:50 PM
Biondi Tommaso
Biondi Tommaso - avatar