(in python 3) Take the username and password from a user and check the validity of the  password using the following rules: 1.   Password must contain at least 2 digits, at least one uppercase  letter, at least one lowercase letter, and at least one of the special  characters (*,_,%,$,#,@) in it. If one or more of these are missing, show  which ones are missing. 2.   The password must not contain the username in it. If it does, the  password will be invalid. 3.   The password must have a length of 8 or more. Sample Input 1: Username: IzukuMidoriya Password: izukuMidoriya24# Output1: Invalid Password: Password cannot contain username Sample Input 2: Username: IzukuMidoriya Password: Iamhere@12 Output2: Valid password Sample Input 3: Username: IzukuMidoriya Password: Ia4%Lp Output3: Invalid Password: Password too short Sample Input 4: Username: IzukuMidoriya Password: izuku@Midoriya24# Output4: Valid Password Sample Input 5: Username: IzukuMidoriya Password: Ia4%sahdvckgjp Output5: Invalid Password: Missing the following items: 1 more digit missing Uppercase letters Special Characters

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
???????? 2:(in python 3) Take the username and password from a user and check the validity of the  password using the following rules: 1.   Password must contain at least 2 digits, at least one uppercase  letter, at least one lowercase letter, and at least one of the special  characters (*,_,%,$,#,@) in it. If one or more of these are missing, show  which ones are missing. 2.   The password must not contain the username in it. If it does, the  password will be invalid. 3.   The password must have a length of 8 or more. Sample Input 1: Username: IzukuMidoriya Password: izukuMidoriya24# Output1: Invalid Password: Password cannot contain username Sample Input 2: Username: IzukuMidoriya Password: Iamhere@12 Output2: Valid password Sample Input 3: Username: IzukuMidoriya Password: Ia4%Lp Output3: Invalid Password: Password too short Sample Input 4: Username: IzukuMidoriya Password: izuku@Midoriya24# Output4: Valid Password Sample Input 5: Username: IzukuMidoriya Password: Ia4%sahdvckgjp Output5: Invalid Password: Missing the following items: 1 more digit missing Uppercase letters Special Characters
Expert Solution
steps

Step by step

Solved in 3 steps with 4 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY