0

About > Code Coach > Password Validation

I wrote the code and its workinf fine but i dont get the idea of how to pass all the tests in once, can i get a help with it please, thanks. Code of Passwors Validation: https://code.sololearn.com/cIRnxLOiHffa/?ref=app Please feel free to correct me if there is any mistakes :)

21st Jul 2020, 1:06 AM
Mahmoud Abualeid
Mahmoud Abualeid - avatar
6 Respostas
0
I actually tried it its working fine but i tried many code coach challenges and im always facing the same problem like, how can i get to pass all the tests in once
21st Jul 2020, 1:24 AM
Mahmoud Abualeid
Mahmoud Abualeid - avatar
+ 6
You need to take user input.
21st Jul 2020, 1:42 AM
Kevin ★
+ 5
Leeby Something weird is happening when password length < 7. You should be able to find it out :)
21st Jul 2020, 2:04 AM
Kevin ★
+ 1
Not sure, but you might have an indentation issue around this here: else: if verbose: Looks like if your else branch was only executed, if the loop before it wasn't. Please verify this.
21st Jul 2020, 1:21 AM
Sandra Meyer
Sandra Meyer - avatar
+ 1
The correct solution and only this would lead to all test cases passed (and therefore mark the solution green). Any solution, which only works for a few test cases is not the final and correct solution.
21st Jul 2020, 1:46 AM
Sandra Meyer
Sandra Meyer - avatar
0
Kevin ★ Oh thanks so much for that because i was actually ignoring it the whole time and typing the password by myself. But still though i passed all of the test caes except case 4 and its hidden =)
21st Jul 2020, 1:56 AM
Mahmoud Abualeid
Mahmoud Abualeid - avatar