Password Strength X42015


Statement
 

pdf   zip

thehtml

Design a function fortaleza_password(password) that, given a strings password indicate its security level detecting the number of conditions it meets:

It must contain at least 10 characters

It must contain at least one capital letter

It must contain at least one lowercase letter

It must contain at least one number

It must contain at least one symbol among $+_*−.,=%

Sample session
>>> fortaleza_password('A1b2.cdef0')
5
>>> fortaleza_password('hola')
1
>>> fortaleza_password('P4SsW=rd')
4
>>> fortaleza_password('PaSsW=rdddddddddddddddddddd')
4
Information
Author
InfBesos
Language
English
Translator
Original language
Spanish
Other languages
Catalan Spanish
Official solutions
Python
User solutions
Python