0
I wanna analyze a password.what should i do?
when it has capital letter: print strong and when it has not cap letter: print weak
2 ответов
+ 1
Compare if string == string.lower()
If it’s false then it has a capital letter
0
well you could make bunch of if rules that give score and depending on the final score it will tell the strenght of the password.
Like more specific than just capital letter since it doesnt necessarily increase the strenght of the password that much if it is the first letter only or if it has numbers 123 in the end or special character ! in the back.