Write a Python function, namely PasswordVerfication(pwdList), which takes a list of passwords. The function verifies the validity of passwords and returns lists of verified passwords and bad passwords. Password must contain characters in accordance with the following criteria: • at least 2 lowercase letters • at least 2 uppercase letters at least 1 digit at least 1 letter from "!@#$%" • password's length must be at least 8 characters #Sample Run 1 Enter password list: abc123;tMb1977#;ABCde123$;americal23AB! ================= ======== Entered passwords include: abc123 tMb1977# ABCde123$ americal23AB! ==== === ======= Verified passwords include: 1. ABCde12324 2. america123AB! ====== ====== Bad passwords include: 1. abc123 2. tMb1977# #Sample Run 2 Enter password list: 9ddADBKKVks;test123ABC@;CKMO347989!;abtest123AB ============ ==== ==== Entered passwords include: 9ddADBKKVks test123ABC@ CKMO347989! abtest123AB ===== ===: ==== === Verified passwords include: 1. test123ABC@ 2. CKMO347989! ====== === ============= Bad passwords include: 1. 9ddADBKKVks 2. abtest123AB

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
Write a Python function, namely PasswordVerfication(pwdList), which takes a list
of passwords. The function verifies the validity of passwords and returns lists of verified
passwords and bad passwords. Password must contain characters in accordance with the
following criteria:
• at least 2 lowercase letters
at least 2 uppercase letters
at least 1 digit
at least 1 letter from “!@#$%"
• password's length must be at least 8 characters
#Sample Run 1
Enter password list: abc123;±MB1977 # ; ABCde123$; america123AB!
================== ========
Entered passwords include:
abc123
tMb1977#
ABCde123$
america123AB!
============
====-=====
Verified passwords include:
1. ABCde123$
2. america123AB!
====== =========== =========
Bad passwords include:
1. abc123
2. tMb1977#
#Sample Run 2
Enter password list: 9ddADBKKVks;test123ABC@;CKMO347989!;abtest123AB
===== ===
Entered passwords include:
9ddADBKKVks
test123ABC@
CKMO347989!
abtest123AB
==== ====
===== ==
Verified passwords include:
1. test123ABC@
2. ckMO347989!
Bad passwords include:
1. 9ddADBKKVks
2. abtest123AB
Transcribed Image Text:Write a Python function, namely PasswordVerfication(pwdList), which takes a list of passwords. The function verifies the validity of passwords and returns lists of verified passwords and bad passwords. Password must contain characters in accordance with the following criteria: • at least 2 lowercase letters at least 2 uppercase letters at least 1 digit at least 1 letter from “!@#$%" • password's length must be at least 8 characters #Sample Run 1 Enter password list: abc123;±MB1977 # ; ABCde123$; america123AB! ================== ======== Entered passwords include: abc123 tMb1977# ABCde123$ america123AB! ============ ====-===== Verified passwords include: 1. ABCde123$ 2. america123AB! ====== =========== ========= Bad passwords include: 1. abc123 2. tMb1977# #Sample Run 2 Enter password list: 9ddADBKKVks;test123ABC@;CKMO347989!;abtest123AB ===== === Entered passwords include: 9ddADBKKVks test123ABC@ CKMO347989! abtest123AB ==== ==== ===== == Verified passwords include: 1. test123ABC@ 2. ckMO347989! Bad passwords include: 1. 9ddADBKKVks 2. abtest123AB
Expert Solution
trending now

Trending now

This is a popular 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