I wanna analyze a password.what should i do? | Sololearn: Learn to code for FREE!
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

18th Mar 2018, 3:13 PM
mohamadjavad
mohamadjavad - avatar
2 ответов
+ 1
Compare if string == string.lower() If it’s false then it has a capital letter
18th Mar 2018, 3:19 PM
Ariela
Ariela - avatar
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.
18th Mar 2018, 9:39 PM
Markus Kaleton
Markus Kaleton - avatar