1. (Check password) Some Web sites impose certain rules for passwords. Write a function that checks whether a string is a valid password. Suppose the password rules are as follows: * A password must...


please quickly  thanks !!


use Python


1. (Check password) Some Web sites impose certain rules for passwords. Write a<br>function that checks whether a string is a valid password. Suppose the password<br>rules are as follows:<br>* A password must have at least eight characters.<br>* A password must consist of only letters and digits.<br>* A password must contain at least two digits.<br>Write a program that prompts the user to enter a password and displays valid<br>password if the rules are followed or invalid password otherwise.<br>Enter a string for password: ab<br>Invalid password<br>Enter a string for password: a 123 b2<br>Invalid password<br>Enter a string for password: x11qw23b<br>Valid password<br>

Extracted text: 1. (Check password) Some Web sites impose certain rules for passwords. Write a function that checks whether a string is a valid password. Suppose the password rules are as follows: * A password must have at least eight characters. * A password must consist of only letters and digits. * A password must contain at least two digits. Write a program that prompts the user to enter a password and displays valid password if the rules are followed or invalid password otherwise. Enter a string for password: ab Invalid password Enter a string for password: a 123 b2 Invalid password Enter a string for password: x11qw23b Valid password

Jun 03, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here