Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please do in python Write a function password.strength that takes one argument, password, which is a string of characters consisting of lowercase letters, uppercase letters,

Please do in python
image text in transcribed
Write a function password.strength that takes one argument, password, which is a string of characters consisting of lowercase letters, uppercase letters, digits and non-alphanumerical symbols. The function allocates points to password based on the location of certain characters in the string: Rule the first character is a digit the last character is a digit a digit is anywhere elsc the first character is an uppercase letter the last character is an uppercase letter an uppcrcase letter is anywhere else a lowercase letter anywhere the first character is a symbol the last character is a symbol a symbol is anywhere else Points to Add 40 50 25 25 15 10 25 35 15 The function returns the total points allocated by the rules above multiplied by the length of the password. Double- counting of points is acceptable in some (not all!) circumstances. For example, consider a string of length 1 that contains an uppercase letter. What is the strength of that string? For example, if password is 'Abce%, , the total points allocated by the rules above will be 75' Then, 75%

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

1 2 3 Data Base Techniques

Authors: Dick Andersen

1st Edition

0880223464, 978-0880223461

More Books

Students also viewed these Databases questions